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

11
LINES

< > BotCompany Repo | #1000843 - copyFile - returns dest

JavaX fragment (include)

static File copyFile(File src, File dest) ctex {
  FileInputStream inputStream = new FileInputStream(src.getPath());
  FileOutputStream outputStream = newFileOutputStream(dest.getPath());
  try {
    copyStream(inputStream, outputStream);
    inputStream.close();
  } finally {
    outputStream.close();
  }
  ret dest;
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, sawdedvomwva, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1000843
Snippet name: copyFile - returns dest
Eternal ID of this version: #1000843/4
Text MD5: f2273ef3daa6893bb3c374c134993bc3
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-22 16:03:39
Source code size: 331 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 454 / 1032
Version history: 3 change(s)
Referenced in: [show references]

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