Source/NFX/IO/FileSystem/FileSystemFile.cs
/// <summary>
/// Reads all text from stream using the specified parameters
/// </summary>
Reads all text from stream using the specified parameters
Reads all text from stream using the specified parameters
public string ReadAllText(Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize = 1024)
        {
          using(var fs = this.FileStream)
            using(var r = new StreamReader(fs, encoding, detectEncodingFromByteOrderMarks, bufferSize))
              return r.ReadToEnd();
        }
public string ReadAllText ( Encoding encoding , bool detectEncodingFromByteOrderMarks , int bufferSize = 1024 ) { using ( var fs = this . FileStream ) using ( var r = new StreamReader ( fs , encoding , detectEncodingFromByteOrderMarks , bufferSize ) ) return r . ReadToEnd ( ) ; }
Reads all text from stream using the specified parameters
Reads all text from stream using the specified parameters
encoding
Encoding
detectEncodingFromByteOrderMarks
bool
bufferSize
int