FileBuffer

The FileBuffer component provides an alternate caching interface to the File Component based on the ANSI-C standard. This component is provided for compatibility. FileBuffer operations use an internally stored "offset" position for file operations.

FileBuffer Properties

parent
The file component with which this fileBuffer interacts. Currently, setting this variable has no effect on the fileBuffer.

FileBuffer Events

None.

FileBuffer Actions

getc() as integer

This action returns the byte at the current (internally stored) position as an integer

putc(character as integer)

This action writes the given integer character as a byte at the current (internally stored) position.

gets(length as integer)

This action returns the string of characters stored from the current position to the passed length.

puts(buffer as string, length as integer)

This action writes length characters from the string passed in buffer to the parent file.

geti() as integer

This action returns a 16-bit word length integer at the current position.

puti(value as integer)

This action writes the passed 16-bit word length integer value to the parent file.