hi,<br>I'm new to vc++. using vc++6.<br>I want to display the contents of a text file in an edit box. I used the following code. but cannot seem to get the entire file (which is very small) to a single variable.<br><br>CString tempvar;<br>while (!feof(fehelp_file_ptr))<br>{<br> fscanf(fehelp_file_ptr,"%s",tempvar);<br> m_fhelp= m_fhelp + tempvar; //this part does not work<br>}<br>UpdateData(FALSE);<br>fclose(fehelp_file_ptr);<br>//m_fhelp is the member variable of an edit box.<br><br>sumedha.