autostrad
December 17th, 2009, 10:40 PM
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.
private: System::Void ShwCrdBtn_Click(System::Object^ sender, System::EventArgs^ e)
{
FileInfo^ fi = gcnew FileInfo("C:\\MyFile.txt");
fi->OpenRead();
}
private: System::Void ShwCrdBtn_Click(System::Object^ sender, System::EventArgs^ e)
{
FileInfo^ fi = gcnew FileInfo("C:\\MyFile.txt");
fi->OpenRead();
}