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

4
LINES

< > BotCompany Repo | #1016945 // saveTextFileIfDifferent

JavaX fragment (include)

sbool saveTextFileIfDifferent(File f, S contents) {
  if (eq(loadTextFile(f), contents)) false; // TODO: optimize
  ret true with saveTextFile(f, contents);
}

Author comment

Began life as a copy of #1001042

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: #1016945
Snippet name: saveTextFileIfDifferent
Eternal ID of this version: #1016945/5
Text MD5: 5fb9e6522dfc16843ea834b9e00aeb13
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:52
Source code size: 161 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 464
Version history: 4 change(s)
Referenced in: [show references]