How to add extension to string.For example
string = "MyFile";
the extension must be .txt .
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 22, 2012, 2:53 PM
string fileName = "MyFile";
fileName += ".txt";
Gopi AsaiPosted Jul 22, 2012, 2:34 PM
String a="MyFile";
messagebox.show(a.tostring(), ".txt");
Regards,
Gopi A