Hello I found this piece of code online and when I tried it it ddn't work could is it possible to know what directory in missing from my code?
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
using Microsoft.SPOT.IO;
//using SecretLabs.NETMF.IO;
using System.IO;
namespace SD_CARD
{
public class SD_CARD
{
private static void main()
{
using (var filestream = new FileStream(@"SD\don't panic.txt", FileMode.Create))
{
StreamWriter streamWriter = new StreamWriter(filestream);
streamWriter.WriteLine("Hello Netduino!!!");
streamWriter.Close();
}
using (var filestream = new FileStream(@"SD\don't panic.txt", FileMode.Open))
{
StreamReader Reader = new StreamReader(filestream);
Debug.Print(Reader.ReadToEnd());
Reader.Close();
}
}
}
}
The bold text is the syntax errors I got after writing the code. I got 1 error which is about the missing reference to IO but don't know which one because when I add using secretlabs.netfm.io it doesn't find the dll file either, do I need to download it from somewhere?
Sorry about the long email but i really need to figure out how to use the usd and the netduino plus.
MLW
Member Since 14 Oct 2011Offline Last Active Feb 27 2012 03:23 PM