Matrix1 Utility Plug-ins

# Matrix1Util_22

This plug-in provides a more comprehensive replacement for the original file commands within DBPro.
Using these commands you can open a file for reading, writing or updating, jump around the file as you require, read/write strings in various formats, as well as read/write the standard DBPro data types.

Open and close files

CLOSE DATAFILE | - Close an open datafile
DATAFILE RESERVED |
FIND FREE DATAFILE |
OPEN DATAFILE TO APPEND | - Open a file to append
OPEN DATAFILE TO READ | - Open a file for reading
OPEN DATAFILE TO UPDATE | - Open a file for read/write
OPEN DATAFILE TO WRITE | - Open a new file for read/write
RELEASE RESERVED DATAFILE |
RESERVE FREE DATAFILE |

Read and Write data

DATAFILE BOOLEAN | - Read a Boolean
DATAFILE BYTE | - Read a byte
DATAFILE DATASTRING | - Read a number of bytes into memory and returns them as a string
DATAFILE DOUBLE FLOAT | - Read a Double Float
DATAFILE DOUBLE INTEGER | - Read a Double Integer
DATAFILE DWORD | - Read a dword
DATAFILE FLOAT | - Read a Float
DATAFILE INTEGER | - Read an Integer
DATAFILE MEMORY | - Read a number of bytes into memory
DATAFILE STRING$ | - Read a string
DATAFILE WORD | - Read a word
SET DATAFILE SIZE | - Sets the size of the datafile
WRITE DATAFILE BOOLEAN | - Write a Boolean
WRITE DATAFILE BYTE | - Write a Byte
WRITE DATAFILE DATASTRING | - Write bytes from memory
WRITE DATAFILE DOUBLE FLOAT | - Write a Double Float
WRITE DATAFILE DOUBLE INTEGER | - Write a Double Integer
WRITE DATAFILE DWORD | - Write a dword
WRITE DATAFILE FLOAT | - Write a Float
WRITE DATAFILE INTEGER | - Write an Integer
WRITE DATAFILE MEMORY | - Write bytes from memory
WRITE DATAFILE STRING | - Write a String
WRITE DATAFILE WORD | - Write a Word

File Information

DATAFILE END | - Check if End-of-file has been reached
DATAFILE ERROR | - Check if an error has occurred
DATAFILE EXIST | - Check if a file number is in use
DATAFILE MODE | - Get the current mode of the file

File Settings

DATAFILE FLUSH | - Force writes to disk
DATAFILE POSITION | - Get current position within a file
DATAFILE SIZE | - Get current file size
DATAFILE SKIP | - Seek via an offset
DATAFILE STRING TYPE | - Get or set string type for reading/writing
SET DATAFILE POSITION | - Seek within a file

Changing directories

DIR STACK SIZE | - Gets the number of entries on the internal directory stack
DROP DIR | - Remove the top entry from the internal directory stack
GET DIR TOP$ | - Gets the directory location of the top item on the internal directory stack
POP DIR | - Takes the previous directory off of the internal directory stack and makes it the current directory
PUSH DIR | - Pushes the currect directory location onto an internal stack

File Utility commands/functions

EXPAND PATH$ | - Converts a filename or directory name to a full pathname.
FILE CREATION TIMESTAMP$ |
FILE IN USE |
FILE MODIFICATION TIMESTAMP$ |
TIMESTAMP$ |

Go back to ...

Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011