How can I open text file to the screen
Can anybody tell me how to open (print)a text file to the screen. For example, to click a botton and the file will be shown in the screen. Using something like the code below.
Code:
private: System::Void ShwCrdBtn_Click(System::Object^ sender, System::EventArgs^ e)
{
FileInfo^ fi = gcnew FileInfo("C:\\MyFile.txt");
fi->OpenRead();
}
Re: How can I open text file to the screen
Wrong forum. Ask in the managed C++ forum.
Re: How can I open text file to the screen
What do you mean show the file on the screen? It has to be displayed in a window or window control. Do you want to open it in a notepad instance, or maybe in a control on a form of yours?
Re: How can I open text file to the screen