fwrite
#2

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
When I try to write with fwrite to a file, It just replaces what I've previously written, why?
Because this is what fwrite does. Use fread to read the file into a string, use format (like format(....,"%s\n%s, FileContent, StringToStoreInFile) ) and then use fwrite. It will replace the text that was in the file, with the stuff you've read from the file and the String you want to store in the file.
Reply


Messages In This Thread
fwrite - by Mike Garber - 06.11.2010, 17:52
Re: fwrite - by DeathOnaStick - 06.11.2010, 18:27
Re: fwrite - by Mike Garber - 06.11.2010, 18:30
Re: fwrite - by Mike_Peterson - 06.11.2010, 18:33
Re: fwrite - by DeathOnaStick - 06.11.2010, 18:38
Re: fwrite - by Mike Garber - 06.11.2010, 18:41
Re: fwrite - by LarzI - 06.11.2010, 19:14
Re: fwrite - by Mike Garber - 06.11.2010, 20:26

Forum Jump:


Users browsing this thread: 2 Guest(s)