AppendTextA
Description
Adding an ANSI encoded text file to the document.
function AppendTextA (const FileName: String; StyleNo, ParaNo: Integer; AsSingleParagraph: Boolean): Boolean;
Parameter |
Description |
FileName |
A text file in ANSI encoding. |
StyleNo |
The number of the text style. Not used, use the value 0. |
ParaNo |
If ParaNo=-1, the method adds an item to the end of the last paragraph. If ParaNo>=0, this item starts a new paragraph. |
AsSingleParagraph |
If False, each new line will be added as a new paragraph. If True, it treats #13 and #10 as line breaks, not paragraph breaks. |
Example
Form1.RichEdit1.AppendTextA('d:\file.txt', 0, -1, True);