I'm currently doing this:
{
ifstream inf( "file" );
for( inf >> string; < ? > ; inf >> string )
etc.
}
at < ? >, how do I check for the end of the line, or will this method not work? It seems like >> is treating the end of a line just as a space, that is, as a delimiter, and so the return values between "ECS40 " and "ECS40\n" would be the exact same. Am I wrong? Is there a way to spot the EOL?
{
ifstream inf( "file" );
for( inf >> string; < ? > ; inf >> string )
etc.
}
at < ? >, how do I check for the end of the line, or will this method not work? It seems like >> is treating the end of a line just as a space, that is, as a delimiter, and so the return values between "ECS40 " and "ECS40\n" would be the exact same. Am I wrong? Is there a way to spot the EOL?