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

8
LINES

< > BotCompany Repo | #1024333 // saveLinesAsTextFile

JavaX fragment (include)

/** writes safely (to temp file, then rename) */
static File saveLinesAsTextFile(String fileName, Iterable<S> lines) ctex {
  ret saveTextFile(fileName, lines(lines));
}

static File saveLinesAsTextFile(File fileName, Iterable<S> lines) {
  ret saveLinesAsTextFile(fileName.getPath(), lines);
}

Author comment

Began life as a copy of #1001042

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: #1024333
Snippet name: saveLinesAsTextFile
Eternal ID of this version: #1024333/3
Text MD5: 090182aef0f9fb6738667be9e7fdaa6c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-03 22:30:52
Source code size: 301 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 205 / 245
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)