!636 !standard functions !609 // main String s = loadTextFile("input/input.txt", null); StringBuilder buf = new StringBuilder(); for (String line : toLines(s)) { Matcher matcher = match(line, "^!include (#\\d+)"); if (matcher.find()) { String id = matcher.group(1); buf.append(loadSnippet(id)); } else buf.append(line); buf.append("\n"); } saveTextFile("output/output.txt", buf.toString());
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qbtsjoyahagl, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #656 |
| Snippet name: | Include processor (developing) |
| Eternal ID of this version: | #656/1 |
| Text MD5: | 28577fd0bc37a2ff3b90b695a0c95120 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX (input.txt to output.txt) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-07-05 18:47:05 |
| Source code size: | 426 bytes / 16 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 975 / 849 |
| Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |