how can i save console data which is shown in console application?
Printable View
how can i save console data which is shown in console application?
The same way you save any data in any application. Are you talking about using a database, a file of some type, the registry, something else?
i just want to save data in text file..
You would write to a text file using a StreamWriter, or you can use some of the methods of the File class (e.g. WriteAllText, AppendAllText) or the My.Computer.FileSystem object (e.g. WriteAllText). Note that, if you want to use a StreamWriter, you can create one explicitly or with the File.OpenText or My.Computer.FileSystem.OpenTextFileWriter. An MSDN search for write text file would yield all manner of results.