Top | ![]() |
![]() |
![]() |
![]() |
This class defines objects to read text files with the same API than with GIOChannel. The addition is that these files can be transparently compressed or not.
gboolean tool_files_open (ToolFiles *file
,const gchar *filename
,GError **error
);
Open filename
for read access. The file can be compressed or not.
Since: 3.8
GIOStatus tool_files_read_line_string (ToolFiles *file
,GString *buffer
,gsize *terminator_pos
,GError **error
);
Read a new line from file
and put it into buffer
. This works like
g_io_channel_read_line_string()
but is transparent for compressed files.
file |
a ToolFiles object. |
|
buffer |
an allocated string. |
[out caller-allocates] |
terminator_pos |
position of the terminator
in |
[out caller-allocates] |
error |
an error location. |
Since: 3.8