CSV Writer creates an extra blank row

Hi @pedrocapri ,

It’s more or less common convention in the computer world to end files with a newline, so I’d consider this intended behavior :slight_smile: I’d simply suggest a script to strip it away after writing to the file system?

Here’s an example on my NodePit Space:

Essentially it calls the following script:

var path = Paths.get("/path/to/file.txt");
var content = Files.readString(path);
Files.writeString(path, content.trim());

HTH,
Philipp

5 Likes