Re: fopen and r+ problem
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
.
Relevant Pages
- RE: UPDATETEXT
... starting from 0 for inserting to the begining of the text data. ... In your update statement, replace the first null with 0. ... > UPDATETEXT t_narocilnica.description @oldValue NULL NULL @str ... > It always append to the end of the text. ... (microsoft.public.sqlserver.programming) - Re: putting > in reply messages?
... Gaikokujin Kyofusho wrote: ... > seem to figure out how to make it append '>' to the begining of each ... Brian Tillman ... (microsoft.public.outlook.general) - Re: [9fans] Deleting mail
... It do not erase the mail. ... Why I change the exclusive mode? ... Change the append bit not the lock bit. ... (comp.os.plan9) - Re: UPDATETEXT
... if I replace first null with 0 then I lost old value, ... overrides the old value, the result is: ... >> It always append to the end of the text. ... >> How can I append the new text to the begining, ... (microsoft.public.sqlserver.programming) - Re: Append on top (easy sollution)
... >> Does anyone know of a way to open a file in append mode and append ... > simply open in append mode so open doesn't clobber the file, ... And if it's shorter you end up with some ... you'd have to erase everything and write first the new text and then ... (perl.beginners) |
|