strings

  • Thread starter Thread starter juli
  • Start date Start date
J

juli

Hello,
I have a string[] type variable(str) and I want to get into a string
variable(line) values of from str[3] and untill the end of the
string[] str .
How do I do it?
Thanks a lot:)
 
Not sure if I understood it properly, but this might be what you're looking
for

string line = "";
if (str.Length > 3)
{
for (int i = 3; i < str.Length; i++)
{
line += str;
}
}

-vJ
 
Hi,

If str[] is a fat array, you might consider the use of a StringBuilder


Sytem.Text.StringBuilder sbLine = new Sytem.Text.StringBuilder();
.....
sbLine.Append(str);
......
String line = sbLine.ToString();

Vijaye Raji said:
Not sure if I understood it properly, but this might be what you're
looking for

string line = "";
if (str.Length > 3)
{
for (int i = 3; i < str.Length; i++)
{
line += str;
}
}

-vJ

juli said:
Hello,
I have a string[] type variable(str) and I want to get into a string
variable(line) values of from str[3] and untill the end of the
string[] str .
How do I do it?
Thanks a lot:)
 
Back
Top