File I/O

User-space API

The following table lists all functions related to using open File HANDLE’s.

API Description

BT_Read()

Reads data from the specified file handle.

BT_Write()

Writes data to the specified file handle.

BT_GetC()

Get a character from the specified file handle.

BT_PutC()

Write a character to the specified file handle.

BT_Seek()

Seeks the file offset pointer of the specified file handle.

BT_Tell()

Gets the current position of the file offset pointer of the specified file handle.

BT_GetS()

Gets a string (a line) from the specified file handle.

Further Reading

The full API is defined under:

os/include/fs/bt_file.h

See the implementation under:

os/src/fs/bt_file.c

See the driver interface under:

os/include/interfaces/bt_if_fs.h os/include/interfaces/bt_if_file.h

Back