Hi, I trying to open a Random Access File in a mulitline textbox the file has records stored in lines and columns. I am new to .NET so I don't know all the functions as yet but here is what I tried(doesn't work)
Code:
private: System::Void OnClickedDisplay(System::Object * sender, System::EventArgs * e)
{
StreamReader *StreamReader1;
StreamReader1 = new StreamReader(textBox1->Text->ToString());//The file is already opened and the filename is displayed in textbox1
this->textBox2->Text=StreamReader1->ReadToEnd();//Display stream in textbox2
StreamReader1->Close();
}