StevoSimpson
Programmer
Hi,
I'm having trouble getting a textbox to show strings properly.
I'm reading in a file into a String*, searching for a specific string within this, and saving the found string.
ie.
This works fine, I get the results I'm expecting when I output line1 into a file. (the full track name)
However, when I try adding line1 to a textbox:
all I get is the first character.
Any ideas why this would be happening? It's beginning to drive me insane!!
I'm having trouble getting a textbox to show strings properly.
I'm reading in a file into a String*, searching for a specific string within this, and saving the found string.
ie.
Code:
FileStream* fstrm = new FileStream(String::Concat(this->drive,this->DATpath),FileMode::Open,FileAccess::Read,FileShare::Read);
StreamReader* reader = new StreamReader(fstrm,System::Text::Encoding::UTF8);
String* info = reader->ReadToEnd();
String* line1 = info->Substring(7,64);
This works fine, I get the results I'm expecting when I output line1 into a file. (the full track name)
However, when I try adding line1 to a textbox:
Code:
textBox1->Text = line1;
Any ideas why this would be happening? It's beginning to drive me insane!!