summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2008-12-15 04:47:22 +0000
committerUrban Müller2008-12-15 04:47:22 +0000
commit0cd524a1dc1b89ee62aabee262e6a03c1b1c7465 (patch)
treeeca0cb9ec1efda343dd818da8e68f6f48af6681a
parenta1045c9a5d80adaa5a8ad58e9c630c7e6a3e1a62 (diff)
downloaditools-0cd524a1dc1b89ee62aabee262e6a03c1b1c7465.tar.gz
itools-0cd524a1dc1b89ee62aabee262e6a03c1b1c7465.tar.bz2
itools-0cd524a1dc1b89ee62aabee262e6a03c1b1c7465.zip
docs
-rw-r--r--it.class2
1 files changed, 2 insertions, 0 deletions
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())
{