strings

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:)
 
V

Vijaye Raji

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
 
A

Arjen Stins

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:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top