Thanks
But problem is that the fread and fwrite are fro binary files.
I want to write the infromation in the following format in text files:
Record-1 Name Age .......
Record-2..
Thanks
But problem is that the fread and fwrite are fro binary files.
I want to write the infromation in the following format in text files:
Record-1 Name Age .......
Record-2..
Pls check
In that case look up
fputs
fprintf
Just because fread and fwrite are for binary data doesn't stop you using them to write text. text is binary data too as far as the computer is concerned it is just you that chooses to view it differently.