ma non ti conviene splittare sul carattere '\n'? così hai un array che contie tutte le righe
Regole del Forum