View Single Post
  #1 (permalink)  
Old December 18th, 2009, 12:41 AM
autostrad autostrad is offline
Registered User
 
Join Date: Oct 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
private: System::Void ShwCrdBtn_Click(System::Object^ sender, System::EventArgs^ e)

Code:
{
FileInfo^ fi = gcnew FileInfo("C:\\MyFile.txt"); 
fi->OpenRead();
    
 }
Reply With Quote