i have a document written in MS Word 2003 and the structure of the document is as

this is a line number 1_p1
this is a line number 2_p1
this is a line number 3_p1
this is a line number 4_p1
this is a line number 1_p2
this is a line number 2_p2
this is a line number 3_p2
this is a line number 4_p2
this is a line number 1_p3
this is a line number 2_p3
this is a line number 3_p3
this is a line number 4_p3

now here i want to display these information as

p1
this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

p2
this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

p3
this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

here please note that every line consist of symbol _ as separator.

Recommended Answers

All 2 Replies

Hello Learner010,

Can you elaborate some more on what you are trying to do? You mentioned word, so wouldnt you just be able to format the page however you wish? cut/paste, reformat?

I dont think i'm understanding the issue correctly. Are you generating this file programmatically?

Are you generating this file programmatically?

No, i am not generating the file programmatically.

this is a line number 1_p1
this is a line number 2_p1
this is a line number 3_p1
this is a line number 4_p1

actually there are thousands of lines which has _ as delimiter.
it means that a particular word written after _ will be the heading of the paragraph. ok.

so i want to set these lines as

p1 //paragraph heading

this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

i think now i have explored the problem exactly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.