 |
|
Junior Member
|

02-09-2007
, 02:40
Re: File functions - Which to use
|
#3
|
Great! Thanks for the speedy reply.
Another quick question: From what i've read, I assume the difference between fgets/fputs and read_file/write_file is that while the first ones have a c like behaviour, the write_file, because it offers "line operations", it "moves" the file everytime a line has its lenght modified, or a line is added somewhere other than the EOF, and read_file has to do a sequential search counting /n to reach a line number (hence the "expensiveness").
Ok then, since I need a fixed-size record file I was hoping i could use a function like C's fread, but i guess i'll have to abuse fgets.
Again, thank you for your help!
Last edited by facuq; 02-09-2007 at 17:38.
|
|
|
|