Search code examples
filexamarin.formsio

Read a file from specific path Xamarin.Forms


I have the following path on Android device:

storage/sdcard0/Android/data/.../files/

How can I read file from the specific path in Xamarin.Forms ?


Solution

  • just use the normal System.IO classes, like

    var text = File.ReadAllText(path);