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

5
LINES

< > BotCompany Repo | #1014157 // loadUtf8LineFromFile

JavaX fragment (include)

sS loadUtf8LineFromFile(File f, long index) ctex {
  FileInputStream in = new FileInputStream(f);
  in.skip(index); // XXX - is this fast?
  ret new ByteCountingLineReader(in).readLine();
}

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: #1014157
Snippet name: loadUtf8LineFromFile
Eternal ID of this version: #1014157/2
Text MD5: 8c8f91b93655286eca5d157e474d2a05
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-15 12:40:02
Source code size: 193 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 418
Version history: 1 change(s)
Referenced in: [show references]