Creating folders in the sd card


#1

I have tried writing different functions to write files into folders on the sd card but I have had no luck. I am able to write to the sd card with writeebd, am I missing something to make folders and sub folders? im trying to orginize my data into file:/usr/sdext/year/month/file.csv


#2

Hi Lucas,

I’m not sure if it’s possible to create folders from the flexy, but you can definitely write and call to specific folders.

I’d recommend creating the folders in FileZilla like below

Then you should be able to write to the specific folders by using the code example below:

Function createdoc()
OPEN “file:/usr/sdext/year/month/CustomInt.txt” FOR BINARY APPEND AS 1
PUT 1,“Tag1” + “;” + STR$ Tag1@ + CHR$(13)+ CHR$(10)
CLOSE 1
print “created”
EndFN

If you want to send out data from the folder in an email see the code below:

writing and exporting from folders.txt (1.2 KB)


#4

Thank you again Tim :partying_face::partying_face::partying_face:


#5

Welcome!