I'm trying to read this file:
Distinguido/a cliente:
Le damos la bienvenida a nuestra empresa y deseamos que nuestra relación sea siempre muy satisfactoria.
Muy atentamente,
El director
and it's obligatory to do it as if the words in the file were "Paraula" objects. This is the class Paraula:
And I have this class to read the files:
The problem is that I need to read the file and then write the content in another file, but it doesn't read "\n" "\r" so when I write it the source file appears in the new file in just one line. How can I do it to make it "save" or know when the char read is a '\n' to write it in the new file and still using this method of reading as if the words were Paraula objects?
Thank you