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

4
LINES

< > BotCompany Repo | #1016945 // saveTextFileIfDifferent

JavaX fragment (include)

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

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: 442 / 465
Version history: 4 change(s)
Referenced in: [show references]