here is the code
Code:
#region filecreation and writing data to file
FileInfo fi = new FileInfo(@"c:\\csharppgms\\stdinfo.txt");
StreamWriter sw1 = fi.AppendText();
std:
Console.WriteLine("enter student name:");
string