private: System::Void ShwCrdBtn_Click(System::Object^ sender,
System::EventArgs^ e)
{
FileInfo^ fi = gcnew FileInfo("C:\\MyFile.txt");
fi->OpenRead();
}
--
Thanks
Allen
You'll need to do the translation to C++, but in C#, I think you want:
string txt = File.ReadAllText(@"c:\myfile.txt");
MessageBox.Show(txt);
--
Mike