Beispiel #1
0
 public static Task <string> ReadText(
     this PathString path,
     Encoding?encoding,
     CancellationToken cancellationToken = default)
 => FileEx.ReadText(path, encoding, cancellationToken);
Beispiel #2
0
 public static Task WriteText(
     this PathString path,
     string contents,
     Encoding?encoding = null,
     CancellationToken cancellationToken = default)
 => FileEx.WriteText(path, contents, encoding, cancellationToken);