Exemplo n.º 1
0
 /// <summary>
 /// Reads the file in as a string
 /// </summary>
 /// <returns>The file contents as a string</returns>
 public override string Read()
 {
     if (!Exists)
     {
         return(string.Empty);
     }
     using var Reader = InternalFile.OpenText();
     return(Reader.ReadToEnd());
 }
 /// <summary>
 /// Reads the file in as a string
 /// </summary>
 /// <returns>The file contents as a string</returns>
 public override string Read()
 {
     if (!Exists)
     {
         return("");
     }
     using (StreamReader Reader = InternalFile.OpenText())
     {
         return(Reader.ReadToEnd());
     }
 }