
tboss888
New User
Aug 14, 2008, 4:44 AM
Post #1 of 2
(330 views)
|
|
Adding lines of text to a file
|
Can't Post
|
|
Hi all, I did a cursory search but was unable to find anything. I'm trying to edit a txt file using perl. What I want to do is add 3 lines of text to a certain line number in an existing file. Can anyone point me in the right direction to accomplish this. I am able to count the line numbers but I'm not sure what to do next. ie. Old file New file
|