Im having a hard time understanding how to read the first line of a file. im trying to read the 1st line of a file and then check to see if its blank. this is what i came up with but still not working
void buildTree( NodePtr &root, ifstream& input )
{
char line [50];
line= input.getline();
if ( line == NULL )
{
root = NULL;
return;
}
}