IOChannel.readLine

Reads a line, including the terminating character(s), from a #GIOChannel into a newly-allocated string. str_return will contain allocated memory if the return is G_IO_STATUS_NORMAL.

class IOChannel
readLine
(
out string strReturn
,
out size_t length
,
out size_t terminatorPos
)

Parameters

strReturn string

The line read from the #GIOChannel, including the line terminator. This data should be freed with glib.global.gfree when no longer needed. This is a nul-terminated string. If a length of zero is returned, this will be null instead.

length size_t

location to store length of the read data, or null

terminatorPos size_t

location to store position of line terminator, or null

Return Value

Type: glib.types.IOStatus

the status of the operation.