Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

MLW

Member Since 14 Oct 2011
Offline Last Active Feb 27 2012 03:23 PM
-----

Topics I've Started

Syntax Errors

14 October 2011 - 01:02 PM

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.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.