如何使用applicationdata知道windows phone 8中是否存在文件? [英] How to know whether file exists or not in windows phone 8 using applicationdata?
本文介绍了如何使用applicationdata知道windows phone 8中是否存在文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将数据存储在这样的隔离存储中...
Iam trying to stored data in isolated storage like this...
但如果我想验证文件是否存在,我该怎么办呢?
But if i want to verify whether the file exists or not how could i do that?
在此文件夹不存在folder.isfileexists(filename)。
In this folder.isfileexists(filename) like method is not there.
请给我一个解决方案。
推荐答案
您必须尝试读取该文件,如果没有异常则存在。 希望有更好的方法
You have to try and read the file and if there is no exception it exists. Wish there was a better way
这篇关于如何使用applicationdata知道windows phone 8中是否存在文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文