Original Post
Hello I am using C/C++ DirectX 8.0. I was making a program that saves a directory string to a .txt file and when I loaded the string it only loaded everything up to the space. Can someone please tell me a way to get the whole string from the file? I was thinking of letting the user enter in the number of spaces the string has and then loading each peice of the string from the file, but there has to be a better way then that.
Thanks.
here is the code I am loading the string with:
void loadbuttonsdirectory()
{
ifstream in("buttonsdirectory.txt");
if(in)
{
for(int index=0; index<20; index++)
{
in >> buttons[index].directory;
}
in.close();
}
}
[edited by - HIPOPO on May 21, 2003 8:46:42 PM]