Re: [mono-android] Reading from a file

2012-01-11 Thread Jonathan Pryor
On Dec 22, 2011, at 4:49 PM, John Croft wrote: > I have the following code: Runtime behavior will depend upon the contents of the QUICKEDIT_FILENAME file, which you don't provide. That makes it rather hard to reproduce. :-) So, my equivalent code works: void TestStreamInvokers (TextView

Re: [mono-android] Reading from a file

2011-12-23 Thread caruso
Hello John, why don't you use a Streamwriter so you can use it again like: (Streamwriter, Pfad zur Datei, Inhalt an die bestehende anhängen) using (StreamWriter s = new StreamWriter(PATH_TO_FILE, false)) { s.Write(YOUR Data TO Write HERE); } -- View this message in context: http://mono-for-andr

[mono-android] Reading from a file

2011-12-22 Thread John Croft
I have the following code: void OpenFile() { byte[] content = new byte[1024]; try { Stream fis = OpenFileInput(QUICKEDIT_FILENAME); if (fis.Read(content,0,content.Length) > 0) {