G
Guest
Hi,
1. I have a string that i want to write into a file. the string is build
from few textboxs (str=text1+text2...), how can i write the string to the
file in ASCII format?
2. I need my string will be 120 char length, and incase the string is less
then 120 chars, i need to fill it with spaces till it will be 120 chars
length, is there a better way then:
while(str.length<120)
{
str=str+" ";
}
Thanks,
Gidi.
1. I have a string that i want to write into a file. the string is build
from few textboxs (str=text1+text2...), how can i write the string to the
file in ASCII format?
2. I need my string will be 120 char length, and incase the string is less
then 120 chars, i need to fill it with spaces till it will be 120 chars
length, is there a better way then:
while(str.length<120)
{
str=str+" ";
}
Thanks,
Gidi.