Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i identify paragraph from text file...?
Suppose i have text file which contain more then one paragraph then how can i separate that paragraph...? how to parse that paragraph...?
Posted
Comments
OriginalGriff 3-Jun-14 5:34am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Text files don't have "Paragraphs" - they don't really even have "Lines" - so it's going to be down to you to look at your data and work it out.
Use the "Improve question" widget to edit your question and provide better information.

In text file there is no difference between a text and paragraph. It's visual representation by giving a space between block of text. If you want to differentiate then you need to look for a pattern of multiple enter keys.
 
Share this answer
 
Comments
kirankanani 3-Jun-14 5:42am    
Yes I have Text file in which the text is repressant like paragraph.
so i have to parse that paragraph...
Is it pure text or a document file such as a Word document?

In a text file, a paragraph would normally end with two consecutive carriage returns (or carriage return/line feeds)

Word documents hava paragraph objects
 
Share this answer
 
Comments
kirankanani 3-Jun-14 5:45am    
It is pure text file .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900