Jaime Montes wrote:
I found this checking the file with a hex editor. I have try with the
class studio.h with the FILE, with the class fstream with ofstream and
ifstream, and the two give the same result when I have to write
char(10) it write char(13) + char(10).
Just open the output file as binary, that is:
f = fopen("filename", "wb"); // for stdio.h files
f.open("filename", std::ios_base::binary); // for iostream files
Alberto