you probably want to use System.getProperty("line.separator") to make this portable