I try this little program:
The file is not on the SD card when I plug it into my host. Workarounds:
1. Set a breakpoint on the return statement, it is there.
2. run the program in non debug mode and it is there.
3. Add Debug.Print("Writing complete"); before the return statement and it is there.
Workarounds, not fixes.