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.

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

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: 59 / 98
Version history: 2 change(s)
Referenced in: [show references]