Hi,
How can I understand which line terminator (windows or linux) used in file without reading file line by line?
I need something like this but in
java:
(linux file utility)
jeremyt@jeremyt-lt:~/Documents> file test-win.txt
test-win.txt: ASCII text, with CRLF line terminators
jeremyt@jeremyt-lt:~/Documents> file test-mac.txt
test-mac.txt: ASCII text, with CR line terminators
jeremyt@jeremyt-lt:~/Documents> file test-unix.txt
test-unix.txt: ASCII text