hey all need some help. :)
I have already learned how to create a file, and enter data in the file. And also to READ all the contents (thanks to this site) **thumbs up to everyone**
But heres my problem : I wish to make my program create unique files. That is the user can ENTER the filename.
Any help is appreciated and thanks in advance.
tried a pointer.. to get it after a cin command..
tried reading it in then stating the the variable as the filename...
Looked at tmpnam but that definately threw me in a tizzy..
none of these work!! :(
oh well i forgot to post this before.. im having trouble getting to read in input that has spaces.
e.g.
Delivery address : 58 multree hill
when i use a string or char.. as soon as i press SPACE it hops out of the category and the program stops.
tried getline.. but to no avail.
Also.. i actually take in the values.. then READ them in after into the file.. maybe thats the problem.
Well heres what works... (that is when its a CHAR of 20)
**note**the var i want to read in with spaces is Delivery_Add