Difference between revisions of "Write to Netduino SD card"

From RayHarwood
Jump to: navigation, search
(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...")
 
 
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
+
  End Try
 +
</pre>

Latest revision as of 14:13, 21 March 2014

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox