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!

reading from file

Status
Not open for further replies.

classic773

Programmer
Jun 14, 2001
57
US
I'm using fstream to open and read from a file. I'm trying to put lines of text into CStrings. Since I don't know how to do this directly, I'm putting them into LPSTR's then setting the CStrings equal to the LPSTR's. However, when I do this, the CStrings just end up equalling " " Can somebody please help me read text from a file and put it in a CString
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top