将文件附加到文件 [英] append file to file

查看:82
本文介绍了将文件附加到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想追加一个文件(比如g1)并添加信息frm temp文件(比如说g2)....信息frm g2必须添加到文件的特定行g1说frm第三行....任何人都可以帮助我....

解决方案

展开 | 选择 | Wrap | 行号


使用Tie :: File模块

perldoc:Tie ::文件


嘿dint了解如何使用该模块我是新来的perl ......

i want to append a file(say g1) and add info frm temp file (say g2) .... the info frm g2 must be added at a paticular line of the file g1 say frm third line .... can anyone help me in this....

解决方案

Expand|Select|Wrap|Line Numbers


use the Tie::File module

perldoc: Tie::File


hey dint understand how to use that module exactly i am new to perl......


这篇关于将文件附加到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆