Nebula #1 You are adding a chr(13) at the top before the first line is added. You can fix it by placing tmp2$ = readline(file) above the while nof eof(file) line.