I am very new to programming, and I have little to no idea on what I am doing...
I need have a user type a input file and then I need the program to read the file and output the information... seems simple, but I can not get it to work. Here is what I have for my code... It could be completely wrong, but it is my best guess.. Thanks in advance for your help.
You had the write idea. Get it *write*, writing to files :P. Anyways on line 18 I believe you wanted the name of the file, so instead you should you input the file name via a string. And then you could inFile.open(*string variable name*) and then get all of your data from that file. Of course you should check if the file exists and if it doesn't just create a blank txt file via if (filestream.fail())
This looks like a good start; however, you need to save the user's answer to the prompt "Enter the order filename:". Then, use that answer to open your file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
string InFileName;
cout >> "Enter the order filename: ";
cin >> InFileName;
infile.open( InFileName.c_str() );
if( infile.good() )
{
... // The rest of your program ...
}