ciao, prova ad usare \n:
Codice PHP:
fwrite($fp,"testo\n"); 
ciao