cmq potevi usare explode(); per separare le righe vabbè...

senti ma fwrite lo usi con che attributi? "w+b"? Io ho dovuto usare questo altrimenti non funzionava correttamente