Forum Cross Platform with Xamarin

read txt file from portable

Hello,
I am a xamarin beginner I need help in how to read a .txt file from my portable project to put it in a label text.
I added the .txt file to my android assets file and in the ios resaurce folders but I need to know how to access and read them.
thank you :)

Answers

  • kentuckerkentucker USMember ✭✭✭✭✭
    edited May 2018

    This is not possible in a PCL with out dependency injection. If you use a .net standard library you have access to classes in system.io namespace like file stream

Sign In or Register to comment.