Csharp
how to open txt file by giving specific path on button click in csharp
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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 attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 6, 2012, 7:38 PM EDT
private void button2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(@"c:\a.txt");
}
Also refer
http://www.homeandlearn.co.uk/csharp/csharp_s11p1.html
Thanks