Libraryless. Click here for Pure Java version (4578L/31K).
svoid copyTextFileToClipboard(File f) { S text = loadTextFile(f); if (text == null) infoBox("File not found: " + f); else { copyTextToClipboard(text); infoBox(nCharacters(text) + " copied"); } }
Began life as a copy of #1019177
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029615 |
Snippet name: | copyTextFileToClipboard |
Eternal ID of this version: | #1029615/3 |
Text MD5: | c2bcbb731c190a30f096de9cbcd3c57d |
Transpilation MD5: | 5e5f0ff281fddb4b83217d224183329f |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-28 13:33:59 |
Source code size: | 217 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 238 / 361 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |