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

15
LINES

< > BotCompany Repo | #1022206 // loadTextFile_trim

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1345L/9K).

static S loadTextFile_trim(S fileName) {
  ret trim(loadTextFile(fileName));
}

static S loadTextFile_trim(File f, S defaultContents) {
  ret trim(loadTextFile(f, defaultContents));
}

sS loadTextFile_trim(File fileName) {
  return trim(loadTextFile(fileName));
}

sS loadTextFile_trim(S fileName, S defaultContents) {
  ret trim(loadTextFile(fileName, defaultContents));
}

Author comment

Began life as a copy of #1001049

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022206
Snippet name: loadTextFile_trim
Eternal ID of this version: #1022206/1
Text MD5: 6a122119068632a0f44a975ed934ff27
Transpilation MD5: 4c83382b3fdc965e617fdb46df44e811
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-11 11:16:18
Source code size: 387 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 294 / 399
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1022207 - loadTextFile_trim (lean mode)