TE Edit Control Win32 / Win64 Help
Product page

ReadTerFile

Load a file into the editor window

BOOL ReadTerFile(hWnd, FileName)
BOOL ReadTerFileU(hWnd, FileNameW)
HWND hWnd;The handle of the window to be accessed
LPBYTE FileName;Name of the disk file to read. This parameter is used by the ReadTerFile method only.
LPWORD FileNameW;Name of the unicode disk file to read. This parameter is used by the ReadTerFileU method only.

Description: This function instructs the editor to load the specified file for editing. Any existing text in the window is discarded.

Return Value: This function returns TRUE if successful.