Hello!
I'm new to c++ but I have a problem and desparate for help.
I'm trying to store string and integers into a file, but only strings get stored and integers dont. I tried casting,didnt work. Not to convolute you with my code, I came up with this small program to show. Any help is greatly appreciated
int main (int argc, char * const argv[]) {
ofstream outfile ("test.txt");
outfile << "hello" << endl;
outfile << 44 << endl;
outfile.close();
return 0;
}