[Coco] toolshed decb attr TELEWRITER-128

Arthur Flexser flexser at fiu.edu
Sat May 21 01:31:19 EDT 2022


I suspect file type 3 was something Tandy invented to apply to files from
its own software like Scripsit or Edtasm source.   I doubt it was ever used
for anything else.  Leaving the file or data type as TW128 stores it would
be appropriate unless you encounter problems with that..

Art


On Sat, May 21, 2022 at 1:15 AM John Mark Mobley via Coco <
coco at maltedmedia.com> wrote:

> On a CoCo disk the file attributes are stored in the Granule Allocation
> Table (GAT) (Think FAT as in File Allocation Table) on Tract 17 of the
> floppy. TELEWRITER-128 saves files with a File Type: BASIC data file (1)
> and
> a Data type: ASCII (255).
>
> But I think it should be a File Type: Text editor file (3) and Data type:
> ASCII (255).
>
> TELEWRITER-128 will accept either file attribute but if you save, it will
> change the File type 3 to a 1.
>
> I have written a program to copy a file from one drive to another and I was
> asked to detect the TXT extension and set the attributes. So I want to know
> which way is right or is either right.
>
>
>
> File type:
>
>   BASIC Program (0)
>
>   BASIC data file (1)
>   Machine-language program (2)
>
>   Text file (3)
>
>
>
> Data type:
>
>   ASCII file (255)
>
>   Binary file (0)
>
>
>
> C:\CoCo3\toolshed-2.2>decb attr C:\CoCo3\BASICA.DSK,ART9.TXT
>
> File type:  BASIC data file (1)
>
> Data type:  ASCII (255)
>
>
>
> John Mark Mobley
>
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list