โ10-07-2020 02:38 PM
Iโm using the Fixed Width Formatter snap to create a .txt file with one line in it, but it always writes the file with one extra blank line at the end.
I tried adding the Head snap using 0 offset, 1 number of documents and tried 1 offset, 1 number of documents. Still didnโt work. Does anyone know how to prevent the one extra blank line?
โ10-07-2020 08:26 PM
Thatโs just the way the Preview works. If you write the output to a file and download it, youโll find it really only has one line.
โ10-08-2020 05:21 AM
โ10-08-2020 01:56 PM
Again, thatโs just the way a text editor shows a file with one line that ends with a newline. Itโs allowing you to enter more text for line 2.
The unix wc utility agrees that your file is one line:
$ wc -l test_header.txt
1 test_header.txt
If you do a hexdump of your file, youโll see only one newline character (0a), at the very end:
โ10-13-2020 08:05 AM
Got it. Thanks for your help here, really appreciate it. Love this community :+1: