K
Kamin of Ressik
I am using MS Visual Studio 2008 C++. Hopefully there is help here
because I cannot find anything useful at MSDN.
I am reading in a text based file with over 2000 lines. Each line has
a tab at the start and I need to remove it to then write to a new file.
I am using
array<String ^> ^lines =
System::IO::File::ReadAllLines(SourceSelector->FileName);
to read the file to an array.
Then this to strip away the tab:
lines[j]->Remove(0,1);
But nothing being removed. The string has been verified to be the same
after the coded executes with a breakpoint evaluation.
Is there something about the fact that it is a a tab character that is
making it fail to remove the character? I have even tried
lines[j]->Remove(5,3);
just to see if it works at all. Nothing is being stripped out of the
strings.
because I cannot find anything useful at MSDN.
I am reading in a text based file with over 2000 lines. Each line has
a tab at the start and I need to remove it to then write to a new file.
I am using
array<String ^> ^lines =
System::IO::File::ReadAllLines(SourceSelector->FileName);
to read the file to an array.
Then this to strip away the tab:
lines[j]->Remove(0,1);
But nothing being removed. The string has been verified to be the same
after the coded executes with a breakpoint evaluation.
Is there something about the fact that it is a a tab character that is
making it fail to remove the character? I have even tried
lines[j]->Remove(5,3);
just to see if it works at all. Nothing is being stripped out of the
strings.