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
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
No Way.
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