User Tools

Site Tools


playground:docu_write

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 on a SD-card based system! 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.

playground/docu_write.txt · Last modified: 2018/07/30 19:24 by Niek