//assume edit control has control id of IDC_EDIT
char szBuffer[256];
HWND hEdit;
hEdit=GetDlgItem(hParent,IDC_EDIT);
GetWindowTextA(hEdit,szBuffer,256);
MessageBoxA(hParent,szBuffer,"Here Is Your Text",MB_OK);
Regardless of how you get your C string, you can create a STL string by means of assignment.
std::string strFile = FileText;
Now you can use find(). There is also a way to use a STL string directly by reserving the needed memory beforehand and passing &strFile[0] to the function.