TE Edit Control .NET Core / .NET Framework Help
Product page

TerFileToMem

A utility function to read a file into a character array.

char[] TerFileToMem(FileName, out size)
int size;The variable to receive the size of the memory block

Description: This function simply reads a file into a character. Please note that this function does not load the file into the editor's buffer. To load a file into the editor, please use the function: ReadTerFile.

Return Value: This function returns the character array containing the file. A null value indicates an error condition.