Originally Posted by
qny
EOF is a macro defined in <stdio.h> with int type and a negative value. It is used to detect errors in I/O operations.
EOL is not defined by either the C Standard or POSIX. Where did you learn about it?
The value '\n', when read or wriiten with <stdio.h> functions for files opened in text mode (no 'b' in the mode string) is automatically translated to whatever is appropriate for the OS where the code is running: "\n" for Linux, "\r\n" for Windows, "\n\r" for very old Mac, ...