gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
I need to append text to a file, but not to the end of the file; one char before the end. This is a text file, which before appending has a \n that I need to overwrite (but keep all the previous contents). Basically, I need the C equivalent to fseek(handle,-1L,SEEK_END). How can I do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advanced appending to file
by hardburn (Abbot) on Jul 13, 2004 at 13:51 UTC | |
|
Re: Advanced appending to file
by chime (Friar) on Jul 13, 2004 at 14:37 UTC | |
|
Re: Advanced appending to file
by dragonchild (Archbishop) on Jul 13, 2004 at 13:54 UTC |