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

12
LINES

< > BotCompany Repo | #1005218 // loadNTSnippet - load NT snippet with caching

JavaX fragment (include)

static S loadNTSnippet(S id) {
  long _id = parseSnippetID(id);
  File f = getCacheProgramFile("#1005128", _id + ".txt");
  if (f.length() != 0)
    ret loadTextFile(f);
  else {
    S s = loadSnippet(id);
    if (nempty(s))
      saveTextFile(f, s);
    ret s;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005218
Snippet name: loadNTSnippet - load NT snippet with caching
Eternal ID of this version: #1005218/1
Text MD5: 3fee0ed5a4f0d2eceab80484a189410d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-23 23:15:23
Source code size: 278 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 572 / 589
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)