Is there a header file somewhere that stores the line termination character/s for the system (so that without any #ifdef
s it will work on all platforms, MAC, Windows, Linux, etc)?
No, because it's \n
everywhere. That expands to the correct newline character(s) when you write it to a text file.