[Coco] Haveing issues with direct access file.

Allen Huffman alsplace at pobox.com
Mon Feb 20 15:43:25 EST 2023


> On Feb 20, 2023, at 2:02 PM, coco--- via Coco <coco at maltedmedia.com> wrote:
> I have made some progress on the creation of a hexeditor program for RS-DOS.
> It is able to display the contents of a file in hexadecmal 80 Bytes at a time in
> 10 rows of eight hex numbers for each row. I also have the code to  pick any
> entry and change it's value. However somehow this is not getting saved back to the
> direct assess file.

I think I got it!  When using FIELD, to put your data back in to the record, you have to use LSET or RSET. In the case of one byte data, I suppose either should work.

LSET BT$=CHR$(42)
PUT #1,R

That should make it write back.

		— Allen




More information about the Coco mailing list