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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading text file into Memo box??

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
Hi,
Can anyone tell me how to load the contents of a text file into a memo box?

Thanks for the help
 
Memo1->Lines->LoadFromFile("C:\\yourfile\text.txt"); Cyprus
[noevil]
 
It´t really simple. Just put this line the event of your choice:
Memo1->Lines->LoadFromFile("C:\\sample.txt");
/Fredrik Eriksson
 
Funny... the question was unanswered when I wrote my reply... :) /Fredrik Eriksson
 
Wierd, considering my post is dated Apr 2. Don't worry about it, My apologies regarding the bluntness of my statement. Nothing big, nothing personal. Cyprus
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top