BCGControlBar Pro for MFC
BOOL CBCGPEditCtrl::OpenFile ( const CString &  strFileName)

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
strFileNameSpecifies the file name.