X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=docs%2FGoalfile.pod;fp=docs%2FGoalfile.pod;h=46fbe1df61f98aabf951584006baf2d7f24b7272;hb=915b9bff547705bf9df287ffb2a057eeaec4ca02;hp=37f3c07c7b2c637f48c426070618c5ca831a5487;hpb=580298444204f92785a7ac78c4529e95e3cba40d;p=goals.git diff --git a/docs/Goalfile.pod b/docs/Goalfile.pod index 37f3c07..46fbe1d 100644 --- a/docs/Goalfile.pod +++ b/docs/Goalfile.pod @@ -56,6 +56,23 @@ Concatenate C and C. It's not usually necessary to use this function since goals automatically flattens lists within lists into simple lists in many cases. +=head3 read (filename) + +For example: + + read ("filename") => "this is the content of filename" + +Read the contents of C and return it as a single string. +If there is a trailing C<\n> in the file it is truncated. + +=head3 readlines (filename) + +For example: + + readlines ("filename") => ["line1", "line2", "line3"] + +Read the lines in C returning a list of strings. + =head3 realpath (filename) For example: