|
-
December 17th, 2009, 11:40 PM
#1
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();
}
-
December 17th, 2009, 11:41 PM
#2
Re: How can I open text file to the screen
Wrong forum. Ask in the managed C++ forum.
-
December 18th, 2009, 04:17 AM
#3
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?
-
December 18th, 2009, 04:17 AM
#4
Re: How can I open text file to the screen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|