Modify System.getProperty("line.separator") to "\n" for Widnows.