get a line from a file
I am stumped with getting a line from a file. I have read a lot of posts on this website but nothing seems to fit my problem. I would like to get lines from a file into strings. But the problem is that I do not know the length of each line of the file before hand and it would seem like the implementation of getline requires the maximum number of characters in a line. I don't know that. Any suggestions would be highly appreciated. Thanks
You should be able to use the getline used with C++ strings.
std::getline(in, str); //in is some std::istream
Try this: getline()
edit: sorry laserlight, you were faster =P
thanks just what i was looking for