Hi,
I'm a beginner in programming with C++. Well I've built a program which requires extensive usage of files and I've been using binary file formats and fread and fwrite commands to perfection.
The project was going well till the curtain was dropped.ie of lately I've been getting junk output whenever I used fread. I noticed that I got the error only when the number of objects I wrote into was more than 1. There is no error when I read the first object. But there after I get a series of garbage value, and I'm finding it most irritable and tiresome as I cannot find out what the problem is. I've converted most of my program to use text files, but its getting much complicated using txt files.
Please evaluate my problem and tell me how to get off this mess.
Afrin