Libraryless. Click here for Pure Java version (367L/4K/12K).
1 | !636 |
2 | !standard functions |
3 | |
4 | main { |
5 | psvm { |
6 | String name = args[0]; // put file name here |
7 | name = new File(name).getAbsolutePath(); |
8 | String text = loadTextFile(name, null); |
9 | if (text == null) |
10 | System.out.println("File not found: " + name); |
11 | else |
12 | ntUpload("textfile-loader", "Contents of " + name + " on " + computerID(), text); |
13 | } |
14 | } |
Began life as a copy of #1000452
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date |
---|---|---|---|
1015 | #1000604 (pitcher) | 2015-08-20 15:28:24 | |
1014 | #1000610 (pitcher) | 2015-08-20 15:16:23 |
Snippet ID: | #740 |
Snippet name: | Upload a local (text) file as NT snippet |
Eternal ID of this version: | #740/1 |
Text MD5: | b76fe77527ccb1567775232aa0934fe4 |
Transpilation MD5: | ed1b99523a40d54d0f6f215b22a43b1b |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-20 15:16:23 |
Source code size: | 370 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 867 / 983 |
Referenced in: | [show references] |