I am writing to a file in C++ in append mode, the program which I am using for the same is:
#include <fstream>
void main()
{
ofstream f;
f.open("f.txt", ios::app);
f<<"\n Hello";
f.close();
}
Now the output which is getting printed in the output file is some thing junk...which I can't comprehend:
OUTPUT:
牐湩㩴
Please help me as to where am i going wrong??? I am working on linux.
void main()is not C++. Please make itint main()