O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic File Commands

DB provides quite a few commands for basic file operations. The commands can be divided into three groups.

  • Search commands

  • Information commands

  • Management commands

Searching for Files

Although you can use the PERFORM CHECKLIST FOR FILES command to get a list of files, DB provides another means to retrieve file information. These commands give you a little more information than the PERFORM CHECKLIST FOR FILES command; therefore, they are treated a little differently.

Finding Files

The FIND FIRST command locates the first file of the current directory. If the command succeeds, it fills the appropriate information into the GET FILENAME$, GET FILE DATE$, and GET FILE TYPE commands. This command should always be successful because ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required