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!

Plaintext in richedit controls

Status
Not open for further replies.

proguru

Programmer
Mar 31, 2001
19
0
0
PY
Hi
I just want to know how can i load a plaintext file in a richedit control and how can i save the contents of a richedit control as a plaintext file.

Thanks.
 
You can load the fine just like normal:

RichEdit1->Lines->LoadFromFile("C:\\yourdir\\yourfile.txt");

Save the same way:
RichEdit1->Lines->SaveToFile("C:\\yourdir\\yourfile.txt");

Just save and load with a *.txt extention. Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top