in reply to Read each paragraph from a text file

This smells of homework so no code.
basic idea for a fairly ineffecient solution.

open the file
loop through each line in the file appending each line to an element in an array
if you hit the paragraph delimiter incrament the array index
print the appropriate array indexes.

  • Comment on Re: Read each paragraph from a text file