1 | static CloseableItIt<S> linesFromFile(File f, IResourceHolder resourceHolder default null) ctex { |
2 | if (!fileExists(f)) ret emptyCloseableIterableIterator(); |
3 | ifndef NoAutoGunzip |
4 | if (ewic(f.getName(), ".gz")) |
5 | ret linesFromReader(utf8bufferedReader(newGZIPInputStream(f)), resourceHolder); |
6 | endifndef |
7 | ret linesFromReader(utf8bufferedReader(f), resourceHolder); |
8 | } |
9 | |
10 | static CloseableItIt<S> linesFromFile(S path, IResourceHolder resourceHolder default null) { |
11 | ret linesFromFile(newFile(path), resourceHolder); |
12 | } |
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/15 |
Text MD5: | 4d56ae82e3f9bff9f901207648d48ede |
Author: | stefan |
Category: | javax / i.o. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-15 16:44:46 |
Source code size: | 530 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 615 / 829 |
Version history: | 14 change(s) |
Referenced in: | [show references] |