Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1029615 // copyTextFileToClipboard

JavaX fragment (include) [tags: use-pretranspiled]

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");
  }
}

Author comment

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: 133 / 216
Version history: 2 change(s)
Referenced in: [show references]