HI,
I have a metro StorageFolder, I can get a file using GetFileAsync(fileName).
However, how do I know if the file exists in the first place? Right now, I catch an exception but it does not seem like the right thing to do.
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Apr 9, 2012, 3:48 AM
Currently there is only way to check whether the file exists or not, is to catch the FileNotFoundException with GetFileAsync method.
please refer.
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/1eb71a80-c59c-4146-aeb6-fefd69f4b4bb/
hope this help.