CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Importing A File Into Editor



I am modifying the sample texteditor that came with C++Builder (version 1.0) to import a file into the current text I am working with. I added an 'Import File' menuitem option to execute the code below. Online help says the LoadFromFile method is suppose to append to existing text. But, it wipes out everything and loads only the new file. How do I load another file into the current text?
   Code:  Editor->Lines->LoadFromFile(PathName);

Thanks!
bsummerour@earthlink.net
 

W Komornicki's Home Page | Main Index | Thread Index