Source/NFX/IO/FileSystem/FileSystemFile.cs
/// <summary>
/// Sets file content to supplied string using the specified parameters
/// </summary>
Sets file content to supplied string using the specified parameters
Sets file content to supplied string using the specified parameters
public void WriteAllText(string text, Encoding encoding, int bufferSize = 1024)
        {
          using(var fs = this.FileStream)
           using(var w = new StreamWriter(fs, encoding, bufferSize))
              w.Write(text);
        }
public void WriteAllText ( string text , Encoding encoding , int bufferSize = 1024 ) { using ( var fs = this . FileStream ) using ( var w = new StreamWriter ( fs , encoding , bufferSize ) ) w . Write ( text ) ; }
Sets file content to supplied string using the specified parameters
Sets file content to supplied string using the specified parameters
text
string
encoding
Encoding
bufferSize
int