I am creating an application that takes input from user and save it permanently in form of table.
Console.Write(\"\\n\\tEnter roll no\\n\\t\");
v= Conv
First you have to create an string array with your data then you can write it to the txt file
string[] lines = { "First line", "Second line", "Third line" };
WriteAllLines creates a file, writes a collection of strings to the file,and then closes the file.
System.IO.File.WriteAllLines(@"C:\Users\Public\TestFolder\WriteLines.txt",lines);
How to: Write to a Text File (C# Programming Guide)