Jump to content

Read Directory in BASIC 1.1.0

   (1 review)

1 Screenshot

About This File

This reads the disk directory in BASIC. This is a super simple example and doesn't actually parse the files... it's just smart enough to read "$" and print it to the screen. 

 


What's New in Version 1.1.0   See changelog

Released

This version is smarter. The directory is actually read as a BASIC file. Each line has a 2 byte link address, 2 byte line number, a variable length text string, and a null. 

So this program reads and discards the link address, reads a 16-bit number for the file size, then reads until the null to get the filename and filetype.

 

 

 Share


User Feedback

Recommended Comments

There are no comments to display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Please review our Terms of Use