rudelm rudelm

Niner since 2012


  • Building Apps for Windows Phone 8 Jump Start: (04) Files and Storage on Windows Phone 8

    I have a question regarding the usage of WinRT functions for file access. You show us at 13:53 a method to load aynchronous a string from a file. If I try to use this code, Visual Studio says that the return type of this method must be void, Task or Task<T>. This would mean that I cannot get that easily information out of async marked methods.


    And another question: For me it seems easier to use the above mentioned method to access files with WinRT. Is there any good reason to use the other version using ms-appdata:// or ms-appx:// instead? It seems more uncomfortable and insecure, if there is no included check for file existance.