cmq a me su win va a capo regolarmente!!
prova a postare la funzione che scrive il file!!!!