Edit

Share via


StorageFileHelper.ReadTextFromFileAsync(StorageFolder, String) Method

Definition

Gets a string value from a Windows.Storage.StorageFile located in the given Windows.Storage.StorageFolder.

public static System.Threading.Tasks.Task<string> ReadTextFromFileAsync (this Windows.Storage.StorageFolder fileLocation, string fileName);
static member ReadTextFromFileAsync : Windows.Storage.StorageFolder * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function ReadTextFromFileAsync (fileLocation As StorageFolder, fileName As String) As Task(Of String)

Parameters

fileLocation
Windows.Storage.StorageFolder

The Windows.Storage.StorageFolder to save the file in.

fileName
String

The relative String file path.

Returns

The stored String value.

Exceptions

Exception thrown if the fileName is null or empty.

Applies to