Edit

Share via


StorageFileHelper.ReadTextFromLocalFileAsync(String) Method

Definition

Gets a string value from a Windows.Storage.StorageFile located in the application local folder.

public static System.Threading.Tasks.Task<string> ReadTextFromLocalFileAsync (string fileName);
static member ReadTextFromLocalFileAsync : string -> System.Threading.Tasks.Task<string>
Public Function ReadTextFromLocalFileAsync (fileName As String) As Task(Of String)

Parameters

fileName
String

The relative String file path.

Returns

The stored String value.

Exceptions

Exception thrown if the fileName is null or empty.

Applies to