Read/write local file with emulator

hi,

i don’t understand how i can access files in directory WINFS or any other directory from the emulator.

I’ve tried a lot of things (FileStream, FileMode.Open, FileAccess.Read, directory…CreateDirectory, …) but i’ve always the error message “an unhandle exception … occurred in system.io

My goal is to emulate an SD card. I’ve tried to modify the emulator as explain here : http://www.tinyclr.com/forum/topic?id=2512 but it doesn’t work for me.
So i’d like to emulate my SD card by using the filesystem on local.

Do someone have an example ?

You should be able to do it without any modifications.

make sure you include the full qualifying file path meaning:


@ "\SD\myfile.txt"

this will write to the file but don’t be locking for that file manually :).

Jay.