Below assume the last line of the current file has aa $crlf on it already!
bset &binvar 1 32 32 32 32 32 32
bwrite text.txt -1 -1 &binvar
write -n text.txt blah $+ $crlf
The
write -n says it stops a $crlf being added to the end, but it also stops one from being appended to the front if the file doesnt end in one, which it doesnt after the
bwriteso i use this to attach the rest of the line, then i hardcoded a $crlf onto the end of it.
I could have added the
blah $+ $crlf to the binvar but i didnt see any overwhelming advantage to that, maybe one less write? it didnt seem that important.