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

4
LINES

< > BotCompany Repo | #1018892 // loadFirstByte - first byte from file (returns -1 if file is empty/not existing)

JavaX fragment (include)

static int loadFirstByte(File f) {
  if (fileLength(f) == 0) ret -1;
  ret loadBinaryFileChunk(f, 0, 1)[0];
}

Author comment

Began life as a copy of #1005312

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018892
Snippet name: loadFirstByte - first byte from file (returns -1 if file is empty/not existing)
Eternal ID of this version: #1018892/3
Text MD5: e28845fd66e51cd6109b1ee7ac3c31d6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-15 16:16:03
Source code size: 112 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 393
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)