Check this program
ifstream filein(\"Hey.txt\"); filein.getline(line,99); cout<
As Kerrek SB said correctly There is 2 possibilities: 1) Second line is an empty line 2) there is no second line and all more than 1000 character is in one line, so second getline has nothing to get.
getline