File Data

Files


 

bm1016         read pointer

bm1017         write pointer

 

The read pointer and write pointer elements are numeric variables representing an offset in the file for reading and in the file for writing. The pointers can be both set and read. On setting a name of the file for reading/writing the relevant pointer will be reset. When reading/writing the data the pointers are shifted automatically.

 

bm1018         integer number with sign, 1 byte

bm1019         integer number without sign, 1 byte

bm1020         integer number with sign, 2 bytes

bm1021         integer number without sign, 2 bytes

bm1022         integer number with sign, 3 bytes

bm1023         integer number without sign, 3 bytes

bm1024         integer number with sign, 4 bytes

bm1025         integer number without sign, 4 bytes

bm1026         decimal number, 4 bytes

bm1027         decimal number, 8 bytes

bm1028         logical value

bm1029         text terminated by binar null (ASCIIZ)

bm1030         text terminated by end of line (CR and LF)

bm1031         text with fixed length

bm1032         length of text with fixed length

bm1033         text is in UNICODE format (2 bytes)

bm1034         item (ICO)

bm1035         picture (BMP, JPG and some AVI)

bm1036         sound (WAV, MP3)

bm1037         music (MID, RMI)

bm1038         sprite (SPR)

 

The data elements can be used in a similar manner like the variables. By writing into an element a write is performed to the output file, by reading an element's value this value is readed from the input file. If an operation error occurs, the operation error flag is set. A format error during reading item, picture, sound, music or sprite elements will not cause a change in the state of the read operation pointer.

 

The logical value element uses 1 byte to store a value. The logical value "Yes" is written as number 1, the logical value "No" is written as number 0. During the reading any number that is not equal 0 is considered to be the logical value "Yes".

 

When reading a picture, the reading of some AVI files using non-compressed 16 bit data (format of the video sequence saved by some TV cards) is supported in addition to the reading of the BMP and JPEG formats. By reading the first picture from the beginning of the AVI file information about the file format is determined, which is used also on reading the subsequent pictures from the AVI file. The picture writing always takes place in the BMP format.

 

When reading a sound, the MPEG Layer-3 (MP3) format is supported. To play it back , an installation of a driver may be necessary. The sound writing always takes place in the WAW format.

 

The length of text with fixed length element defines the length of a fixed length text (not the file data, but an auxiliary internal variable being concerned).

 

The text is in UNICODE format element is a switch indicating that the texts are loaded and stored in the UNICODE format. Normally, the texts are loaded and stored in the Windows default format, one character corresponding to one file byte. In the UNICODE code characters are stored into 2 bytes. The text is not dependent on the national code system; its disadvantage are higher demands on the file size.