Code:
this->input= reader->ReadLine();
String^ delimeter = ",";
int index = 0;
try{
Convert::ToDecimal(this->input->Substring(index,this->input->IndexOf(delimeter)));
if (withHeader) {
this->textBox1->AppendText("Time\t\t");
this->textBox1->AppendText("UserID\t");
this->textBox1->AppendText("Wireless Signal Status\n");
// Log the time stamp and user ID
}
//Seem to be having problems here
this->textBox1->AppendText(String::Concat(this->input->Substring(index,this->input->IndexOf(delimeter)),"\t\t"));input=this->input->Substring(this->input->IndexOf(delimeter)+1,this->input->Length-this->input->IndexOf(delimeter));
this->textBox1->AppendText(String::Concat(this->input->Substring(index,this->input->IndexOf(delimeter)),"\t"));input=this->input->Substring(this->input->IndexOf(delimeter)+1,this->input->Length-this->input->IndexOf(delimeter));
I'm trying to process a file that has the form
timestamp, userid...etc
12.13, 0, 1.....etc
It's correctly outputing the first of the substrings but then it goes to hell.
Anyone see what I'm doing wrong