You are reporting the paste Use fgets() to read a single line from a file.