How can I open text file to the screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Autostrad
    New Member
    • Oct 2009
    • 9

    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::EventAr gs^ e)

    {
    FileInfo^ fi = gcnew FileInfo("C:\\M yFile.txt");
    fi->OpenRead();

    }
Working...