fileReadLines can cope with windows newlines
Simplify endian tests, implement on Windows