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
Find out already created a file
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 8, 2012, 11:48 PM EDT
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.