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