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).

1  
static File createPWFile(File file) {
2  
  if (fileLength(file) == 0)
3  
    saveTextFile(file, aGlobalID());
4  
  ret file;
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

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: 236 / 332
Version history: 1 change(s)
Referenced in: [show references]