Storage Blocks

There are two forms of adding text to an existing file: append file with and append file with line. Both add the specified text to the file listed but append file with line adds a carriage return so the next write begins on a new line. Append will make a new file if the filename does not exist or add to an existing file.

If the goal is always to start fresh with a new file, no matter if the file might exist, overwrite file with will do this. Be careful as you can lose your old data with this block.

If you are looking to read a file rather than write, the read file value block will do that. This may be good for values a program needs to run like configuration data.

The file exists block checks to see if the named file already exists. A program can use this conditional to avoid writing to an existing file or check if a file exists before trying to read it.

The remove file block should be used very carefully. It checks if a file exists, and if so it deletes it.

The size of file block returns a value that is the length of a file in characters. 

This guide was first published on Aug 27, 2019. It was last updated on Aug 27, 2019. This page (Storage Blocks) was last updated on Feb 19, 2020.