title: On windows, how would I detect the line ending of a file?
body: <p>I've seen answers to the questions, but those answers are not from a windows perspective from what I can tell.</p>
  
  <p>Windows uses CR LF, Unix uses LF, Mac uses LF and classic mac uses something else. I don't have the brainpower to tell that somehow, if a file is using a different line ending than what I am typing, I get errors when trying to run the script/program which frankly, don't make much sense. After conversion, the script works just fine.</p>
  
  <p>Is there anyway to preemptively check what line endings a file uses, on Windows?</p>