then everything is ok and that string is written correctly to the file. Then what do you want to do? Print the result of that calculation on the file too? Well... the code is exactly the same. The only thing that changes is what you want to print.
Ok, but it is strange... fout.open should automatically create a new file, il big.txt does not exist.
Same if you try fout.open("big.txt", fstream::out);?
float a, c, d;
c = 0;
while (c < 101) {
d = (5 * ((c * 1.8) + 32) + 2297) / 2457;
a = 325.8 * sqrt(d);
// print on the screen (console)
cout << c << endl << a << endl;
// print on the file
fout << c << endl << a << endl;
sorry to bother again but its now not printing again, i have used
system("notepad.exe new.txt"); and it will only a text file and a text file but not print
fout.open("new.txt", fstream::out) doesn't open any text file