visual studio c++ fstream

Im trying to make the program pull up a schedule from a txt file and display it but it only displays "true." im sure its easy and simple to fix but i cant seem to get it to work. any tips would be great thank you.

Schedule.open("C:\\Users\\Lucas\\source\\lucdesSchedule\\work.txt", ifstream::binary);
Schedule >> name;
label10->Text = System::Convert::ToString(name);

Schedule >> name;
label18->Text = System::Convert::ToString(name);

Schedule >> name;
label17->Text = System::Convert::ToString(name);

Schedule >> name;
label16->Text = System::Convert::ToString(name);

Schedule >> name;
label15->Text = System::Convert::ToString(name);

Schedule >> name;
label14->Text = System::Convert::ToString(name);

Schedule >> name;
label13->Text = System::Convert::ToString(name);

Schedule.close();
this is only a portion of it
ifstream::binary

.txt files do not need to be opened in binary mode.

if you could post more relevant code, I think that would be better.

Aceix.
more relevant like what? want me to post the variables?
yeah i have already removed the ifstream::binary i was something i just tried bc i ran out of ideas lol i posted this before
Topic archived. No new replies allowed.