pysome has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I wanna add some text to a file in its fixed position.Say the line 3. How to achieve? That is , if the file(a.txt) like:
I wanna add some text to a file in its fixed position.Say the line 3. How to achieve? That is , if the file(a.txt) like:
ab cd ef ghij klmnI wanna add "a test content\n" after the "ef".My ideal result is :
ab cd ef a test content <blank line> ghij klmn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to use fseek in perl ??
by Somni (Friar) on Oct 24, 2007 at 12:29 UTC | |
by pysome (Scribe) on Oct 24, 2007 at 13:23 UTC | |
Re: How to use fseek in perl ??
by mwah (Hermit) on Oct 24, 2007 at 11:53 UTC |
Back to
Seekers of Perl Wisdom