Visual Studio 2015 converts linefeeds into carriage return linefeeds unless the file is opened as binary. This results in incorrectly generated pnms on Windows.