private async Task<bool> IsFileExists(string fileName)
{
try
{
StorageFile file = await ApplicationData.Current.LocalFolder.GetFileAsync(fileName);
return true;
}
catch (Exception)
{
return false;
}
}The following code snippet checks if the given file exists or not in the Windows Application Local folder. This code returns 'true' if file exists and returns 'false' if not.
