Directory.GetCurrentDirectory();it just returns "\". If I try to write to the SD card, I get "An unhandled exception of type 'System.IO.IOException' occurred in System.IO.dll". The code I used is :
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using Microsoft.SPOT.IO; using SecretLabs.NETMF.Hardware.NetduinoPlus; using System.IO; using System.Text; namespace NetduinoPlusApplication1 { public class Program { public static void Main() { FileStream fs = new FileStream("\\SD\\test.txt", FileMode.Create, FileAccess.ReadWrite, FileShare.None); StreamWriter sw = new StreamWriter(fs); sw.WriteLine("Hello World!"); sw.Close(); fs.Close(); } } }Am I missing something really obvious here?
Thanks in advance.