Hello Guys,

I'm trying to read a file where I need the position in the file stream
and occasionally seek in the file. The size of that file can vary from some
KB to a few MB.

I've tried using Assets.Open but accessing the Length or Position property
throws an exception. Tried setting the access flag to Access.Random but
this made no difference.

The solutions I've found online were to transfer all the contents to a
memory stream. It seems like a bad idea in the cases where I read files
that are a few MB in size...

One post I found on this list mentioned that a restriction had been lifted
on random access of assets in Android 2.3 but changing the API level didn't
work.

Any advice? Should I use something else for my resources?

--
Matt
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to