How can i write binvar to a file with line breaks?
noop $hget(row, siirMisralari_txt, &binvar)
fopen poemFile temp_text.txt
fwrite -bn poemFile &binvar
fclose poemFile
bunset &binvar
This code can t include line breaks.
bwrite temp_text.txt 0 $hget(row, siirMisralari_txt, &binvar) &binvar
That's the fantastic of binary! It can contain any binary values! Your line breaks must be lost before adding the binary data to the hash table. You need /hadd -b
if you're working with binvars there.
You can /echo -a $bvar(&binvar,1-)
and search for the line breaks depending on what format the file had/has.
Unix: LF ($chr(10)), Win: CRLF ($+($chr(13),$chr(10))), Mac: CR ($chr(13)).