Hi there!
I am new to daniweb.com and C++ CLI. I am trying to make a program that will tell the user the text for the ListItem number they type in. The ListItem information is stored in a text file with my custom file formatting, which is:

<~ListItem 1> text.... <~EndOf 1>
<~ListItem 2> text.... <~EndOf 2>

I have been thinking of a strategy for days, but I can't find out anything.
Thank you very much in advanced!

Recommended Answers

All 3 Replies

Well you can read in each line from the file and see if you find a match

Thanks for the reply, but I am not sure how to check if the line ends with <~EndOf (No)>
The psuedo code for what I want to achieve:
File find <~ListItem + " " + no + > + string + <~EndOf + no + >
And replace it with <~ListItem + " " + no + > + newstring + <~EndOf + no + >

Never mind I figured out the solution myself.

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.