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

6
LINES

< > BotCompany Repo | #1017170 // ai_makeExamplesFile

JavaX fragment (include)

1  
static Pair<File, Bool> ai_makeExamplesFile(S text) {
2  
  File f = javaxDataDir("Examples/" + uniqueFileNameUsingMD5_80_v2(text) + ".text");
3  
  if (f.exists()) ret pair(f, false);
4  
  saveTextFile(f, text);
5  
  ret pair(f, true);
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017170
Snippet name: ai_makeExamplesFile
Eternal ID of this version: #1017170/3
Text MD5: 4c19630fcf85c2c805c2f3f316f5ef70
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-13 16:15:41
Source code size: 229 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 429
Version history: 2 change(s)
Referenced in: [show references]