-api-id | -api-type |
---|---|
M:Windows.Storage.PathIO.ReadTextAsync(System.String,Windows.Storage.Streams.UnicodeEncoding) |
winrt method |
Reads the contents of the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding and returns text.
The path of the file to read.
The character encoding of the file.
When this method completes successfully, it returns the contents of the file as a text string.