Answers for "c# using file.io"

C#
1

c# using file.io

using System.IO;

using (StreamReader reader = File.ReadAllText(path))
{
  //now your file will be closed correctly, 
 // without having to call .close()
}
Posted by: Guest on May-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language