Endless loop which fails automatically at the end of file.