I need to write the contents of 4 vectors into a file. I need each vector written into a new line.
For instance I have a code vector, a description, a vector for how many of each item, and a vector to hold the price. So i need each vector in a different line
10001
diet coke
12
1.00
Do i have to make the contents of the vector into strings first, to be able to copy them to a file? Because I haven't been able to write straight from the vector.
And then to separate them do I output it line by line?
Here's my function... So I made new string variables to make the vector's content into strings.
I included my vector names commented out.
thanks for looking at my code.
If i need to include anymore pieces of code let me know.
I had that before, and I was messing around with turning them to strings, and all sorts of things.
I managed to fix it by making the program ask for the file name in which it needed to save it to. I was opening and closing the outputfile going to nowhere. XD.