Answers for "c# xamarin forms use AssetManager to get text file"

C#
0

c# xamarin forms use AssetManager to get text file

// c# Xamarin Forms for Andriod
strin text = string.Empty;
string filename = "TestList.txt";

AssetManager assets = Android.App.Application.Context.Assets;
using (StreamReader reader = new StreamReader(assets.Open(filename)))
{
    text = reader.ReadToEnd();
}
Posted by: Guest on December-27-2020

Code answers related to "c# xamarin forms use AssetManager to get text file"

C# Answers by Framework

Browse Popular Code Answers by Language