Posted by J.O. Aho on 09/12/07 18:10
s1m0n wrote:
> Hi everybody,
>
> I would like to write a simple code to add some text at the begining of
> a file without erase the other data.
Use append instead, 'a', this will add new lines to the bottom instead of at
the first position in the file (as long as you don't read ahead).
--
//Aho
Navigation:
[Reply to this message]
|