Main Site Documentation

Error with SdCard sample


#1

In http://docs.ghielectronics.com/software/tinyclr/tutorials/filesystem.html,

Line to create file is :

var file = new FileStream($@"{drive.Name}Test.txt", FileMode.OpenOrCreate);

But in this case name file is: “A:\\Test.txt” and it throw error VolumeNotFound.

With file name:“A:\\\\Test.txt”, it works.

I’m not sure if error comes from documentation or incorrect backslash treatment in Library.


#2

It’s likely incorrect expectation of an additional slash in the library, thanks for the catch.