Scroll to navigation

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

NAME

IO::readFile - Read a text file.

SYNOPSIS

String readFile( String fname )

ARGUMENTS

fname A file name

DESCRIPTION

Reads the entire contents of fname into a String. This function assumes that the file is a text file, rather than a binary file.

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

Binary.readBlock (3kaya)
IO.writeFile (3kaya)
August 2014 Kaya