Table of Contents

ugBASIC User Manual

FILE ✓

SYNTAX

   FILE source [AS target]

PURPOSE

The FILE command, inserted inside a BEGIN STORAGE - ENDSTORAGE block, allows you to define the content of the mass storage element. The basic syntax requires indicating the name of the source file that will be inserted into the medium. If you don't want to use the same name, you can indicate an alias (AS target).

EXAMPLE

  FILE "examples/data.dat"
  FILE "sprites.png" AS "sprites.dat"

See also the following example files:

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY