[ { "id": "e4ef1f5e.7cd82", "type": "inject", "z": "4b63452d.672afc", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "8J+YgA==", "payloadType": "str", "x": 220, "y": 820, "wires": [ [ "72b37cc8.177054" ] ] }, { "id": "f5997af4.5a9298", "type": "comment", "z": "4b63452d.672afc", "name": "Specify encoding of written data", "info": "File node can specify encoding of data.", "x": 230, "y": 740, "wires": [] }, { "id": "72b37cc8.177054", "type": "file", "z": "4b63452d.672afc", "name": "", "filename": "/tmp/hello.txt", "appendNewline": true, "createDir": false, "overwriteFile": "true", "encoding": "base64", "x": 400, "y": 820, "wires": [ [ "2da33ec.f45cac2" ] ] }, { "id": "2e814354.278c8c", "type": "debug", "z": "4b63452d.672afc", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 790, "y": 820, "wires": [] }, { "id": "2da33ec.f45cac2", "type": "file in", "z": "4b63452d.672afc", "name": "", "filename": "/tmp/hello.txt", "format": "utf8", "chunk": false, "sendError": false, "encoding": "none", "x": 600, "y": 820, "wires": [ [ "2e814354.278c8c" ] ] }, { "id": "ec754c99.84bfd", "type": "comment", "z": "4b63452d.672afc", "name": "↓write string with base64 encoding", "info": "", "x": 460, "y": 780, "wires": [] }, { "id": "3e6704ff.4ce25c", "type": "comment", "z": "4b63452d.672afc", "name": "↑read result from file", "info": "", "x": 610, "y": 860, "wires": [] } ]