beautypg.com

A15. file manipulation commands, Openup, Close – Argox PA-20 Basic Programming Manual User Manual

Page 114: Bget, Bgetext, Bput, Get_file_error, Dbms_close_search, Dbms_append_data, Dbms_del_data

background image

PT-Basic Programming Manual Ver. 1.00

113/143

A15.

File manipulation commands

Command

description

OPENIN

To open (r) a file and get the header of the file for

further processing.

OPENOUT

To open (w+) a file and get the header of the file

for further processing.

OPENUP

To open (r+) a file and get the header of the file for

further processing.

CLOSE

To close a file.

BGET

To read a byte from a file.The current position is

updated after reading.

BGETEXT

To read a specified number of bytes from a file.

The current position is updated after reading.

GET$

Read a line terminated by a null character “\0”

from a file.

BPUT

To write data to a file.

EOF

To check if file pointer of a file reaches end of file.

PTR

To get or move the file pointer position of a file.

EXT

To get or change file length of a file.

GET_FILE_ERROR

To get the file error code.

DBMS_INIT_SEARCH

To initiate the file search in disk.

DBMS_INIT_SEARCHADV

To initiate the advance file search in disk.

DBMS_CLOSE_SEARCH

To close the file search in disk.

DBMS_APPEND_DATA

To increase one record on the file end.

DBMS_DEL_DATA

To delete the appointed record in the file.

DBMS_EMPTY

To remove all the record in the file.

DBMS_FIND_RECORD

To search the designated field. This command only

supports forward search.

DBMS_FIND_RECORD_B

To search the designated field. This command only

supports backward search.

DBMS_GET_COUNT

To obtain the figure of all records in the file.

DBMS_GET_DATA$

To read the data of appointed field in the appointed

record.

DBMS_UPDATE_DATA

To revise the data of appointed field in appointed

field record.