Objects size ??
| From: | Francois Bare | Date: | Sat, 22 Jul 2000 11:57:02 +0000 |
| Subject: | Objects size ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-7668@lists.php.net to get a copy of this message | ||
Hi.
How can I do to define a class with static sized variables, so that I could write
"fwrite($file, $object, ??$size??) and fread(...)" ?
Now I'm forced to add a "\n" after each string, so : "fputs($file, $string) and
fgets($file, $string, 999)" but it's pretty boring.
I'd like to do, for example : "fseek($file, $index * sizeof(class X))"
I need a solution quickly !
Thank you...
François Baré
PPP Team Software
Clicker Developpement Section
http://www.geocities.com/~pype/
------------------------------------------------------------
Want a free mail at http://www.mail.be ?