I am trying to write a program but i have ran into a problem i need to save a sentence and output it into a text file and i can not seem to get it to work can someone please tell me what to do and give me a example?
i know this is wrong but these is what i want to do
out << "Enter date" <<endl;
cin >> date;
myfile << date
but it always comes out the first word even when i try doing strings someone help?