Given a file contains ASCII characters is there anyway to determine the operating system of origin?
This needs to work regardless of the existence of newline characters
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The most would be Windows uses \r\n and unix \n, And even then, you can write a file with *nix line endings in Windows and vice versa. but if no new line characters.. no way.
You can't see the origin of the file, there's no tag of any kind