Answers for "how to save a file in c# .c#"

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