Scroll to navigation

IO.getString(3kaya) Kaya module reference IO.getString(3kaya)

NAME

IO::getString - Read a string from a binary file

SYNOPSIS

String getString( File h )

ARGUMENTS

h A readable file handle

DESCRIPTION

Reads a string (up to NULL termination) from a binary file. If the end of the file is reached, the string read up to that point will be returned. The string is assumed to be UTF-8 encoded.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

RELATED

IO.get (3kaya)
IO.putStr (3kaya)
August 2014 Kaya