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

5
LINES

< > BotCompany Repo | #1005015 // saveTextFileVerbose

JavaX fragment (include)

static void saveTextFileVerbose(File f, S text) {
  bool exists = f.exists();
  saveTextFile(f, text);
  print((!exists ? "Created" : "Updated") + " file " + f2s(f) + " (" + f.length() + " bytes)");
}

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: #1005015
Snippet name: saveTextFileVerbose
Eternal ID of this version: #1005015/2
Text MD5: 3a94cfca6aa690dd663868cbbe14eae9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-19 23:32:09
Source code size: 204 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 593 / 599
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025770 - saveTextFileWithInfoBox
#1028233 - saveBinaryFileVerbose
#1031748 - saveProgramTextFileVerbose