Reading in a text file paragraph by paragraph
Posted: Mon Mar 06, 2006 11:15 pm
Hi,
I am reading in a text file that has tabs. I want to process each paragraph, i.e. line by line. Once I have loaded the text file into the TRichViewEdit, how to I retrieve each whole paragraph to a string, line by line? For example,
for i := 0 to number of paragraphs do begin
st := paragraph;
//do some processing on string.
end;
I am reading in a text file that has tabs. I want to process each paragraph, i.e. line by line. Once I have loaded the text file into the TRichViewEdit, how to I retrieve each whole paragraph to a string, line by line? For example,
for i := 0 to number of paragraphs do begin
st := paragraph;
//do some processing on string.
end;