POSITION:028,114
COLOUR:STANDARD
TEXT:00,Every file accessed by a Euphoria program is assigned a unique number,
TEXT:16,so multiple files and devices can be handled without any confusion.
TEXT:16,Each file or device is also given its own data buffer. When a program
TEXT:16,outputs data to a file or device, it really goes to the buffer assigned
TEXT:16,to that file or device. When it is full, only then does it get sent to
TEXT:16,the file or device.
TEXT:32,Any files or devices being used by a Euphoria program remains allocated
TEXT:16,until either the program stops running, or the program informs the
TEXT:16,operating system that it is finished with the device or file. When this
TEXT:16,occurs, any data that was wrtten to the buffer is sent to the file or
TEXT:16,device, and the file and device is then free for use by another program.
TEXT:32,Let's begin the process of accessing files and devices by first
TEXT:16,showing how a Euphoria program allocates, or "opens", a file or device
TEXT:16,for use.
