Reading/Writing 8-bit files


Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3367
Posted: 06:12am 08 Mar 2012      

Good point rodent.

In fact ver 2.1 could not do this and it was only in ver 2.3 (I think) that I rewrote the string handling to fix it. Now all string handling is 8 bit "clean". So you can (for example) do a$ = chr$0) and so on.

Also, USB is 8 bit clean, so you can print a null character to the host PC by doing PRINT chr$(0)

GeoffEdited by Geoffg 2012-03-09
Geoff Graham - http://geoffg.net