Click here to Skip to main content
15,746,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir,
I converted my file from docx to text but all line are concat.
How to split every line in text file?Please help me?
Maciej Los 26-Feb-15 1:36am    
What? Please, be more specific and provide more details...
Sinisa Hajnal 26-Feb-15 3:24am    
You'll have to parse the file and add new lines or change the options of your original conversion...but without more information, we cannot help you.

1 solution

We can't answer that - the chances are that when you converted your document, you discarded the line breaks, or assumed that Word text "broke" a line at the right edge of the page - it doesn't, those are "virtual lines" which only occur when formatting the document for the screen or printer. They do not exist in the DOCX file because the position of such breaks is dependant on the layout: flowing round images, or different font sizes for example.

If you want line breaks in your text version, you will have to work out where they should be manually, or by "line length" in the text file yourself (within the paragraphs of text from Word).
Share this answer

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