Whoohoo! It was indeed getline (cin, filename) and not cin.getline (cin, filename) as I thought...
On to working with the files...and yeah, I'm including < fstream >
I'll update as soon as I work out the file output stuff as to how I did it.
Thanks, Gnarf.
EDIT:
Now, the problem is adding the suffix .txt to the output file...everything works fine except for that.
My main problem with creation of the file appears to have been type coercion...I was using a "new" string in place of an "old" string.
I converted between the two using .c_str() .
So, now, I have the following to create the file:
ofstream plots;
*prompt for file name, store as "filename,"*
plots.open(filename.c_str());
but this creates a file with no suffix...It compiles, but it is useless.
Any help would be greatly appreciated.
[ 10-13-2005, 03:41 PM: Message edited by: Ilander ]
__________________
Is that what you really want to say?
|