TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Check if File Exists or not in Windows Runtime Apps
Kishor Bikram Oli
Apr 24
2016
Code
1.6
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
private
async Task<
bool
> IsFileExists(
string
fileName)
{
try
{
StorageFile file = await ApplicationData.Current.LocalFolder.GetFileAsync(
fileName
);
return
true
;
}
catch
(Exception)
{
return
false
;
}
}
C#
Windows Runtime
Windows
MetroApps
UWP
Universal Windows