reading the whole file now add a second line to the file and try again .