Re: [mono-android] First Prog - Issue Opening XML in Resources Directory

2011-05-22 Thread Emiel Metselaar
Try the following code sample (place Test.txt in the Assets folder) var input = Assets.Open("Test.txt"); string text; // Use a StreamReader to read the data using (StreamReader sr = new StreamReader(input)) text = sr.ReadToEnd();

Re: [mono-android] First Prog - Issue Opening XML in Resources Directory

2011-05-19 Thread Karl Heinz Brehme Arredondo
Environment.GetFolderPath(Environment.SpecialFolder.Personal) Karl From: Jerry Paxton Reply-To: "monodroid@lists.ximian.com" Date: Thu, 19 May 2011 14:16:15 -0700 To: "monodroid@lists.ximian.com" Subject: [mono-android] First Prog - Issue Opening XML in Resources Directo

[mono-android] First Prog - Issue Opening XML in Resources Directory

2011-05-19 Thread Jerry Paxton
Hey all, this is my first MonoDroid program and I was wondering how to properly access a file on my Android mobile device. I have an xml file in the Resources/xml folder structure and need to open it up for parsing in my program. try { System.IO.StreamReader streamReader = new System.IO.StreamRe