12.02.2009, 06:19
I read your first post again, you made a function that would write to a file, but then why would you bother with fread? since that only reads data from a file, it won't write anything to it, and you definatly can't do
that would be a never ending loop, and you also didn't open the file in a writing mode. Maybe you should take a look at a few references, if you still can't figure it out, please post your code and the error you're getting.
Код:
while(fwrite(file,params));