L
Lucky
hi guys!
back again with another query.
the problem is like this.
i want to print a line like this:
"---------------------------------------------"
the easiest way is to simply assign it to string and print it.
but i want to use the String.Format() method if possible to do it.
All i came to know about this method is, you can use
String.Format("{argumentIndex[,alignment][:formatString]}",argumentIndex)
do specify paddin and some format. but i dont get it how to provide the
formatstring. i guess it is for formating the argument if i'm not
wrong.
so guys, i need your help here.
i want to do something like this
String.Format("{0,40}","-")
this way it should return me the string filled with 40 dashes.
if there is any better way to do it, please let me know.
i'm trying to learn something about String object. Please help me.
Thanks,
Lucky
back again with another query.
the problem is like this.
i want to print a line like this:
"---------------------------------------------"
the easiest way is to simply assign it to string and print it.
but i want to use the String.Format() method if possible to do it.
All i came to know about this method is, you can use
String.Format("{argumentIndex[,alignment][:formatString]}",argumentIndex)
do specify paddin and some format. but i dont get it how to provide the
formatstring. i guess it is for formating the argument if i'm not
wrong.
so guys, i need your help here.
i want to do something like this
String.Format("{0,40}","-")
this way it should return me the string filled with 40 dashes.
if there is any better way to do it, please let me know.
i'm trying to learn something about String object. Please help me.
Thanks,
Lucky