Read file node can read string from a file.
-
-
Save MarianRaphael/7f93fbbf67f9dc4e81bfbeb2b921881e to your computer and use it in GitHub Desktop.
FlowFuse File Nodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "959d232f6856f5bb", | |
"type": "tab", | |
"label": "Flow 1", | |
"disabled": false, | |
"info": "", | |
"env": [] | |
}, | |
{ | |
"id": "84222b92.d65d18", | |
"type": "inject", | |
"z": "959d232f6856f5bb", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payload": "Hello, World!", | |
"payloadType": "str", | |
"x": 170, | |
"y": 160, | |
"wires": [ | |
[ | |
"b4b9f603.739598" | |
] | |
] | |
}, | |
{ | |
"id": "7b014430.dfd94c", | |
"type": "comment", | |
"z": "959d232f6856f5bb", | |
"name": "Write string to a file, then read from the file", | |
"info": "Read file node can read string from a file.", | |
"x": 200, | |
"y": 80, | |
"wires": [] | |
}, | |
{ | |
"id": "b4b9f603.739598", | |
"type": "file", | |
"z": "959d232f6856f5bb", | |
"name": "", | |
"filename": "/tmp/hello.txt", | |
"appendNewline": true, | |
"createDir": false, | |
"overwriteFile": "true", | |
"encoding": "none", | |
"x": 360, | |
"y": 160, | |
"wires": [ | |
[ | |
"6dc01cac.5c4bf4" | |
] | |
] | |
}, | |
{ | |
"id": "2587adb9.7e60f2", | |
"type": "debug", | |
"z": "959d232f6856f5bb", | |
"name": "", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "false", | |
"statusVal": "", | |
"statusType": "auto", | |
"x": 750, | |
"y": 160, | |
"wires": [] | |
}, | |
{ | |
"id": "6dc01cac.5c4bf4", | |
"type": "file in", | |
"z": "959d232f6856f5bb", | |
"name": "", | |
"filename": "/tmp/hello.txt", | |
"filenameType": "str", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"encoding": "none", | |
"allProps": false, | |
"x": 580, | |
"y": 160, | |
"wires": [ | |
[ | |
"2587adb9.7e60f2" | |
] | |
] | |
}, | |
{ | |
"id": "f4b4309a.3b78a", | |
"type": "comment", | |
"z": "959d232f6856f5bb", | |
"name": "↑read result from file", | |
"info": "", | |
"x": 570, | |
"y": 200, | |
"wires": [] | |
}, | |
{ | |
"id": "672d3693.3cabd8", | |
"type": "comment", | |
"z": "959d232f6856f5bb", | |
"name": "↓write to /tmp/hello.txt", | |
"info": "", | |
"x": 380, | |
"y": 120, | |
"wires": [] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment