How to write a line witout carriage return?

BlitzMax Forums/BlitzMax Programming/How to write a line witout carriage return?

Nennig(Posted 2016) [#1]
Hi there,

I am trying to write a text file with multiple rows but the last row should not have a carriage return.

I mean there should not be one "open" and empty row at the end of the file. Any idea on how to do this?

Many thanks for your help.

Best regards
Marc


xlsior(Posted 2016) [#2]
Of you use the WriteLine command it puts a carriage return + line feed at the end of each line that it writes to the file. If you use WriteString it does not.


Nennig(Posted 2016) [#3]
Hi Marc,

This was exactly what I was looking for!
Thank you so much.
You saved me a big headache at work today!

Cheers
Marc