se leggi il file da unix \n
da windows \r\n
scrivi con System.getProperty("line.separator")