- Joined
- Jul 23, 2007
- Sythe Gold
- 0
- Messages
- 1,188
Ok, I'm making a game in C++. I'm using Dev C++ compiler. My issue deals with opening and close files.
heres an example of what i need...
I ask the user their name.
They input the name.
The name is assigned to a variable.
Now the hard part for me...
loadSave.open(This is where i want the variable for their name to be)
can't get it to work. I know it has something to do with .c_str() but i cant get it to work for the life of me. Help me please?
heres an example of what i need...
I ask the user their name.
They input the name.
The name is assigned to a variable.
Now the hard part for me...
loadSave.open(This is where i want the variable for their name to be)
can't get it to work. I know it has something to do with .c_str() but i cant get it to work for the life of me. Help me please?


