Re: New classes
| From: | Mika Tuupola | Date: | Fri, 29 Mar 2002 17:50:08 +0000 |
| Subject: | Re: New classes | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5139@lists.php.net to get a copy of this message | ||
On Fri, 29 Mar 2002, Richard Heyes wrote:
> Was also thinking about a File_Common class with possible methods including
> readEntireFile(string filename), and readFile(string filename, int size)
> (reads part of a file), writeFile(string filename, string data) and other
Why not just have the int size as optional parameter and read
a part of file if it exists and whole file if nonexistent?
This way you only need to have one method.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/