I finally used FileInputStream and the read() method recognizes newlines.
Thank you very much!
Type: Posts; User: javajo32
I finally used FileInputStream and the read() method recognizes newlines.
Thank you very much!
I'm not sure if a .txt document recognizes paragraphs so I arbitrarily define a paragraph as an empty space between two Strings.
e.g.
This is the first paragraph. This is the
first paragraph.
...
Hello,
I'm trying to build a program that counts the number of paragraphs from a text file.I tried to use a scanner but when i run the program it returns me 0.
I would appreciate any help...
...