hi i want to read info from file.but its going into infinete loop.could help me in this
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
...