Is there an easy way to see whether particular file has DOS/MAC/UNIX line endings?
Currently i read the file byte by byte and stop if i see Windows carriage return
for (byte thisByte : bytes) {
if ((!isDos) && (thisByte == 13)) {
isDos = true;
}
...
Is there a way to get same information without reading file byte by byte?
Thank you.