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

8
LINES

< > BotCompany Repo | #1024439 // firstLineOfFile

JavaX fragment (include)

sS firstLineOfFile(File f) {
  temp CloseableItIt<S> it = linesFromFile(f);
  ret nextFromIterator(it);
}

sS firstLineOfFile(S path) {
  ret firstLineOfFile(newFile(path));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024439
Snippet name: firstLineOfFile
Eternal ID of this version: #1024439/2
Text MD5: 470f88111c79d3e6820a6252aedc0663
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-15 16:49:47
Source code size: 182 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 240 / 305
Version history: 1 change(s)
Referenced in: [show references]