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

8
LINES

< > BotCompany Repo | #1002997 // firstBytesOfFile (todo)

JavaX fragment (include)

static byte[] firstBytesOfFile(File file, int n) {
  FileInputStream in = new FileInputStream(file);
  try {
    ret bytesFromStream(in, n);
  } finally {
    in.close();
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002997
Snippet name: firstBytesOfFile (todo)
Eternal ID of this version: #1002997/1
Text MD5: b689096edd06cc8f7c36a3857dce32fb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-16 14:55:49
Source code size: 183 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 581 / 497
Referenced in: [show references]