#include <iostream>
#include <fstream>
#include <string>
usingnamespace std;
int main()
{
string my_string;
cout << "This program allows you to store data in another location.";
cout << " ";
cout << "Type all of what you want to save into the file";
cout << " ";
system ("pause");
ofstream myfile;
myfile. open ("linkfile.txt");
string x;
cin >> x;
myfile << x;
myfile. close ();
return 0;
}
I need for my program to recognize spaces as blank chars so that you can input more then one word into the file. Help is greatly apreciated!