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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jul 22, 2012, 10:53 AM EDT
string fileName = "MyFile";
fileName += ".txt";
Gopi AsaiRank #6,532 · 263 reputationPosted Jul 22, 2012, 10:34 AM EDT
String a="MyFile";
messagebox.show(a.tostring(), ".txt");
Regards,
Gopi A