Libraryless. Click here for Pure Java version (6579L/37K).
static IVarWithNotify<S> textFileAsVarWithNotify(File file) { ret new TypedVirtualVar<S>(S, -> loadTextFile(file), text -> saveTextFile(file, text)); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034687 |
Snippet name: | textFileAsVarWithNotify [note: doesn't watch the file for changes] |
Eternal ID of this version: | #1034687/3 |
Text MD5: | 2551af30e0c0e4be7c3e90caac268201 |
Transpilation MD5: | 588297618dbaa1a3496d95d681d1497c |
Author: | stefan |
Category: | javax / gazelle 22 |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-03 14:26:20 |
Source code size: | 165 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 230 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |