diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -685,6 +685,7 @@ function mail($p) * Reads a file and returns it as string or in one of several formats. Two params: filename and flags * @param $filename name of file to read or - for stdin * @param $p['keyval'] each line of the file is one tab-separated key/value pair, return assoc array + * @param $p['lines'] return file as array of lines without newline */ function file_get($filename, $p = array()) { @@ -710,6 +711,7 @@ function file_get($filename, $p = array()) * @param $filename name of file to write or - for stdout * @param $data data to write * @param $p['keyval'] $data must be an assoc array and is written as tab-separated lines + * @param $p['lines'] write array of lines, appending newline */ function file_put($filename, $data, $p = array()) { |