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

5
LINES

< > BotCompany Repo | #1030649 - createPWFile - fill file with random ID if empty/not there

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3032L/18K).

static File createPWFile(File file) {
  if (fileLength(file) == 0)
    saveTextFile(file, aGlobalID());
  ret file;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030649
Snippet name: createPWFile - fill file with random ID if empty/not there
Eternal ID of this version: #1030649/2
Text MD5: 7189ce1c2cfb31fbd471ea2cb7c817d5
Transpilation MD5: f2d8e5d6763ce2799784337fd22f7846
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-02-19 15:39:47
Source code size: 121 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 17 / 33
Version history: 1 change(s)
Referenced in: #1006654

Formerly at http://tinybrain.de/1030649 & http://1030649.tinybrain.de