Difference between revisions of "Write to Netduino SD card"
From RayHarwood
Rayharwood (Talk | contribs) (Created page with "Note that many examples online indicate a simple file name "Test.txt"; I've found that only the full path works "\SD\Test.txt". I'm using the Netguino Plus 2, which has an on...") |
Rayharwood (Talk | contribs) |
||
| Line 4: | Line 4: | ||
'''You must use only an SD card, not an SDHC card; and a size limit of 2GB.''' | '''You must use only an SD card, not an SDHC card; and a size limit of 2GB.''' | ||
| − | + | <pre style="color: blue"> | |
Try | Try | ||
Using SW As New System.IO.StreamWriter("\SD\Test.txt") | Using SW As New System.IO.StreamWriter("\SD\Test.txt") | ||
| Line 12: | Line 12: | ||
Catch ex As Exception | Catch ex As Exception | ||
Debug.Print("Error writing to SD card: " & ex.Message) | Debug.Print("Error writing to SD card: " & ex.Message) | ||
| − | + | End Try | |
| + | </pre> | ||