G
Guest
Hi,
I'm writing a C# Windows Application and i have 3 questions:
1. I have a string which i want to write into file but i want to write it in
ASCII format, how can i do it?
2. I need my string to be 120 chars length, incase it's less then 120 chars,
i need to fill it with spaces, is there better way to do it then:
while(str.length<120)
{
str=str+" ";
}
3.I need to concatenate few string into one string, but i need to keep the
orginal order, my string contains numbers, english letters, hebrew letters
and white spaces. when i'm using str=str1+str2 the order is mixed (the hebrew
and english letters along with the numbers), is it better way to concatenate
my strings to one string that keep the order of my strings?
Thanks,
Gidi.
I'm writing a C# Windows Application and i have 3 questions:
1. I have a string which i want to write into file but i want to write it in
ASCII format, how can i do it?
2. I need my string to be 120 chars length, incase it's less then 120 chars,
i need to fill it with spaces, is there better way to do it then:
while(str.length<120)
{
str=str+" ";
}
3.I need to concatenate few string into one string, but i need to keep the
orginal order, my string contains numbers, english letters, hebrew letters
and white spaces. when i'm using str=str1+str2 the order is mixed (the hebrew
and english letters along with the numbers), is it better way to concatenate
my strings to one string that keep the order of my strings?
Thanks,
Gidi.