Libraryless. Click here for Pure Java version (4578L/31K).
1 | svoid copyTextFileToClipboard(File f) { |
2 | S text = loadTextFile(f); |
3 | if (text == null) infoBox("File not found: " + f); |
4 | else { |
5 | copyTextToClipboard(text); |
6 | infoBox(nCharacters(text) + " copied"); |
7 | } |
8 | } |
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: | 237 / 361 |
Version history: | 2 change(s) |
Referenced in: | [show references] |