File
A static class containing methods for creating, reading, writing, and managing files.
What is File in C#?
File — A static class containing methods for creating, reading, writing, and managing files.
class OrderFile
{
string Read(string path)
{
using StreamReader reader = new(path);
return reader.ReadToEnd();
}
}
Level: Journeyman · More C# terms at this level
Updated