BCGSuite for MFC
BOOL CBCGPEditCtrl::OpenFile ( CFile &  file)

Opens a file, reads text from it and sets this text to the edit control.

Returns
Nonzero if the function succeeds; otherwise 0.

Use this function to set the edit control's text from the specified file.

Parameters
fileA file object. The file must have been opened.