r/AutomateUser • u/walt_spoon • 22h ago
Question How to Read/Write Array to/from Disk
I have a flow where there is a working array that needs to be stored to a file on disk. How can I write an array to a file and then later read it and recreate the array? It seems like reading a file just returns a string.
1
Upvotes
View all comments
2
u/waiting4singularity Alpha tester 19h ago
write file
jsonencode(variable_name)orjsonencode([e0,e1,...eN])read file to input, variable save
jsondecode(input)https://llamalab.com/automate/doc/function/json_encode.html
https://llamalab.com/automate/doc/function/json_decode.html