I m creating a text file with the help of File.Create() method and writing some text in it and then close it

After this i need to open the file to review it by using the follwing sttatement

File.OpenRead("c:\\a.txt");

but this is not working plz can any one help me out

the whole code that m using is as follows:

Code:
FileStream fs = File.Create("c:\\a.txt");
StreamWriter sw = new StreamWriter(fs);

sw.Write("hello;");
                
sw.Close();
fs.Close();

if (MessageBox.Show("Data has been exported successfully. Do you want to review the file?", "question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
File.OpenRead("c:\\a.txt");