Edit

Share via


StorageFileHelper.ReadTextFromPackagedFileAsync(String) Method

Definition

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

public static System.Threading.Tasks.Task<string> ReadTextFromPackagedFileAsync (string fileName);
static member ReadTextFromPackagedFileAsync : string -> System.Threading.Tasks.Task<string>
Public Function ReadTextFromPackagedFileAsync (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