How to check if a file exists in Windows 8

Sometimes things are simple, sometimes they aren’t when you think they should be. One such thing in Windows 8 development is checking if a file exists…
In a Windows 8 app (be it C# or JavaScript) you work with the StorageFolder. Since we a…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Sometimes things are simple, sometimes they aren’t when you think they should be. One such thing in Windows 8 development is checking if a file exists… In a Windows 8 app (be it C# or JavaScript) you work with the StorageFolder. Since we are sandboxed and don’t really have file-system access we don’t have the System.IO namespace as we’re use to meaning we have an entirely new set of APIs for reading a writing files (although it’s nice that they are built around being asynchronous).


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-03-22T18:27:26+00:00) » How to check if a file exists in Windows 8. Retrieved from https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/.
MLA
" » How to check if a file exists in Windows 8." Posts on LINQ to Fail | Sciencx - Monday September 24, 2012, https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/
HARVARD
Posts on LINQ to Fail | Sciencx Monday September 24, 2012 » How to check if a file exists in Windows 8., viewed 2023-03-22T18:27:26+00:00,<https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » How to check if a file exists in Windows 8. [Internet]. [Accessed 2023-03-22T18:27:26+00:00]. Available from: https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/
CHICAGO
" » How to check if a file exists in Windows 8." Posts on LINQ to Fail | Sciencx - Accessed 2023-03-22T18:27:26+00:00. https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/
IEEE
" » How to check if a file exists in Windows 8." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/. [Accessed: 2023-03-22T18:27:26+00:00]
rf:citation
» How to check if a file exists in Windows 8 | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2012/09/24/how-to-check-if-a-file-exists-in-windows-8/ | 2023-03-22T18:27:26+00:00
https://github.com/addpipe/simple-recorderjs-demo