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

10
LINES

< > BotCompany Repo | #1014111 // tailFile_newOnly - ignore existing content

JavaX fragment (include)

static TailFile tailFile_newOnly(File file, int interval, O onData) {
  TailFile tf = new TailFile(file, interval, onData);
  tailFile_newOnly(tf);
  tf.start();
  ret tf;
}

svoid tailFile_newOnly(TailFile tf) {
  tf.l = l(tf.file);
}

Author comment

Began life as a copy of #1009097

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014111
Snippet name: tailFile_newOnly - ignore existing content
Eternal ID of this version: #1014111/7
Text MD5: 607c69a8cf7d5210c8b758147a1f054a
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-26 18:32:27
Source code size: 244 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 489 / 535
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014119 - tailFilePlusLastLine - start with last line of existing content