Functions

filesystem_format_read (storage, path, user_table, buffer)

filesystem_format_write (storage, path, user_table, buffer)

Details

InfText.filesystem_format_read(storage, path, user_table, buffer)
Parameters:
Raises:

GLib.Error

Returns:

True on success or False on error.

Return type:

bool

Reads a text session from path in storage. The file is expected to have been saved with InfText.filesystem_format_write() before. The user_table parameter should be an empty user table that will be used for the session, and the buffer parameter should be an empty InfText.Buffer, and the document will be written into this buffer. If the function succeeds, the user table and buffer can be used to create an InfText.Session with InfText.Session.new_with_user_table(). If the function fails, False is returned and error is set.

InfText.filesystem_format_write(storage, path, user_table, buffer)
Parameters:
Raises:

GLib.Error

Returns:

True on success or False on error.

Return type:

bool

Writes the given user table and buffer into the filesystem storage at path. If successful, the session can then be read back with InfText.filesystem_format_read(). If the function fails, False is returned and error is set.