Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retreving text--please help!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all you wonderfull programmers out there,

I hope this makes sense.

My problem is that i have a whole bunch of text in a text document and I want to retrive the text one line at a time.

Example:

Here is some usless text.
I dont like usless text.
hrm, what is this?

What i want, is I want to be able to call the lines one at a time in order going down the line.

does wordwrap affect this at all???

please help.

thanks very much in advance
 
Give a short sample on what do you want to get. John Fill
1c.bmp


ivfmd@mail.md
 
i am an AP student and i know that the way to do it using the AP class "apstring" u can use a getline function to get one line at a time. i know u cant use that but basically what it does is retrieve character by character until it reaches and endline character, u can figure out how to code it from there...its not that hard
 
thread116-84917 had this problem the other day... here is the thread I started and answered.

Matt
 
On a side note, the above post for thread116-94917 was only tested on .txt files (i.e. created with notepad)

matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top