Search:

Type: Posts; User: javajo32

Search: Search took 0.19 seconds.

  1. Replies
    4
    Views
    1,089

    Re: Paragraph count using scanner

    I finally used FileInputStream and the read() method recognizes newlines.

    Thank you very much!
  2. Replies
    4
    Views
    1,089

    Re: Paragraph count using scanner

    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.
    ...
  3. Replies
    4
    Views
    1,089

    Paragraph count using scanner

    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...
    ...
Results 1 to 3 of 3