Windows application form

Ok I'm trying to set a textbox value from a string which I read from a file.
Here is the reading itself in the main cpp file
1
2
3
4
5
6
7
8
9
10
11
ifstream myReadFile;
	 myReadFile.open("text.txt");
	 char output[100];
	 if (myReadFile.is_open()) {
	 while (!myReadFile.eof()) {


    myReadFile >> output;
	  }
}
	myReadFile.close();

Everything is perfect by now I got my data in the string but my quiestion is how can I pass it to the textbox. I tried with this->textBox1->Text = output; but it's in the Form1.h and I cannot figure a way to pass the string.
Im using visual c++ 2010 by the way..
Topic archived. No new replies allowed.