Is it possible to test whether a "line feed" or "line feed + carriage return" were used to end lines in a tex file? I'd like to create a log message with this information.
The reasoning for this is to ensure that all of my files have the same line endings. I know that I could do this using a scripting language. I am just curious whether or not I can test for these characters in TeX? I know TeX sees them as equivalent e.g either situation would yield a single token when tokenizing. I guess this would need to happen before or during the tokenization phase. An example does not seem fitting here.