User Tools

Site Tools


docu_write

This is an old revision of the document!


Write text to a file

Options

NameRequiredMultiple ValuesDescription
TOyesnoThe full file path
TEXTyesnoThe line of text to write
MODEyesnonew or append

Examples

IF 1 == 1 THEN write 'textline' TO /home/pi/myfile.txt MODE new => deletes file if it exists and creates new file
 
IF 1 == 1 THEN write 'textline' TO /home/pi/myfile.txt MODE append => opens existing file or creates new file if it doesn't exist and appends text to the end of it
  

IMPORTANT: Be careful when using this action! Very frequently writing files to your SD-card will shorten its lifetime. If you intend to write files very often it is better to use an external (USB) device like an usb-stick, or usb-diskdrive.

docu_write.1533578407.txt.gz · Last modified: 2018/08/06 20:00 by Niek