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

5
LINES

< > BotCompany Repo | #1034335 // saveBinaryFile_simple

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

Transpiled version (32L) is out of date.

1  
svoid saveBinaryFile_simple(S fileName, byte[] contents) throws IOException {
2  
  FileOutputStream fileOutputStream = new(fileName);
3  
  fileOutputStream.write(contents);
4  
  fileOutputStream.close();
5  
}

Author comment

Began life as a copy of #1001113

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034335
Snippet name: saveBinaryFile_simple
Eternal ID of this version: #1034335/3
Text MD5: 7ba5f9b7e53b77a3b2328632ede5b889
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-02 21:31:25
Source code size: 200 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 161 / 239
Version history: 2 change(s)
Referenced in: [show references]