Appending in between some file
From: Anish Kumar K. (anish_at_vitalect-india.com)
Date: 02/24/05
- Previous message: Ing. Branislav Gerzo: "Re: pattern matching"
- Next in thread: Thomas Bätzler: "RE: Appending in between some file"
- Maybe reply: Thomas Bätzler: "RE: Appending in between some file"
- Reply: John W. Krahn: "Re: Appending in between some file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Fri, 25 Feb 2005 01:19:12 +0530
Hi
I wanted to append some line in between a text file. So what I tried is with the seek command I tried moving the pointer and then do appeding, but for some reason it was not getting appended.
I know there are ways to make this task possible. I am afraid abot the memory consumption so I haven;t used it.
Say I have a text file
Java
Oracle
Visual basic
I wanted to insert PERL after Oracle...So now the file should be
Java
Oracle
PERL
Visual basic
I did with array. ie first copying the file into array and then doing.
is there any alternate way
Anish
- Previous message: Ing. Branislav Gerzo: "Re: pattern matching"
- Next in thread: Thomas Bätzler: "RE: Appending in between some file"
- Maybe reply: Thomas Bätzler: "RE: Appending in between some file"
- Reply: John W. Krahn: "Re: Appending in between some file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|