Answers for "save file in console"

C#
0

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);
Posted by: Guest on November-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language