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

12
LINES

< > BotCompany Repo | #1011460 - linesFromFile

JavaX fragment (include)

static CloseableItIt<S> linesFromFile(File f) ctex {
  if (!f.exists()) ret emptyCloseableIterableIterator();
  ifndef NoAutoGunzip
  if (ewic(f.getName(), ".gz"))
    ret linesFromReader(utf8bufferedReader(newGZIPInputStream(f)));
  endifndef
  ret linesFromReader(utf8bufferedReader(f));
}

static CloseableItIt<S> linesFromFile(S path) {
  ret linesFromFile(newFile(path));
}

Author comment

Began life as a copy of #1008739

download  show line numbers  debug dex   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, podlckwnjdmb, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, whxojlpjdney, xrpafgyirdlv, yanjaxplzisb

No comments. add comment

Snippet ID: #1011460
Snippet name: linesFromFile
Eternal ID of this version: #1011460/11
Text MD5: d93ec729c477c810aee624a03a7b8e8a
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-03 13:15:33
Source code size: 389 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 468
Version history: 10 change(s)
Referenced in: [show references]

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