From 0cd524a1dc1b89ee62aabee262e6a03c1b1c7465 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 15 Dec 2008 04:47:22 +0000 Subject: docs --- it.class | 2 ++ 1 file changed, 2 insertions(+) (limited to 'it.class') diff --git a/it.class b/it.class index 554da52..480f270 100644 --- a/it.class +++ b/it.class @@ -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()) { -- cgit v1.2.3