Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# console save file

FileStream filestream = new FileStream("out.txt", FileMode.Create);
var streamwriter = new StreamWriter(filestream);
streamwriter.AutoFlush = true;
Console.SetOut(streamwriter);
Console.SetError(streamwriter);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #console #save #file
ADD COMMENT
Topic
Name
3+1 =