read a text file and display the content into the list box
i need to open a text file and display the content in the listbox, i use the following code:
but i can't convert const char* into CString , how to do it?
ifstream myfile ("D:\\text.txt");
while (! myfile.eof() )
out << line << endl;
string line2 = out.str();
CString line3 = line2.c_str();
also any other method to read text file into listbox or editbox which is easier?