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


< > BotCompany Repo | #1011460 - linesFromFile - returns CloseableItIt

JavaX fragment (include)

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

static CloseableItIt<S> linesFromFile(S path, IResourceHolder resourceHolder default null) {
  ret linesFromFile(newFile(path), resourceHolder);

Author comment

Began life as a copy of #1008739

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011460
Snippet name: linesFromFile - returns CloseableItIt
Eternal ID of this version: #1011460/14
Text MD5: cbc04ff7cfed0726477dec9a78a16119
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-01 15:25:12
Source code size: 527 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 554
Version history: 13 change(s)
Referenced in: [show references]

Formerly at &