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

9
LINES

< > BotCompany Repo | #1002887 // loadTextFileStartingFrom (function)

JavaX fragment (include)

  public static String loadTextFileStartingFrom(File fileName, int startAt) ctex {
    if (!fileName.exists())
      return "";

    FileInputStream fileInputStream = new FileInputStream(fileName);
    fileInputStream.skip(startAt);
    InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, "UTF-8");
    return loadTextFile(inputStreamReader);
  }

Author comment

Began life as a copy of #1001049

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002887
Snippet name: loadTextFileStartingFrom (function)
Eternal ID of this version: #1002887/1
Text MD5: 42223f6db3df3dd2b325933652736b65
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-24 19:54:34
Source code size: 381 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 548 / 492
Referenced in: [show references]