AUTHOR:Zoyus (nahsorhseda)
version :1.0 (since this is a base class)

this class is meant for writing and reading objects from/to a file

example :

<?php
//write example
include("fstream.php");
class user
{
public $username;
public $password;
}


$record=new user;
$record->username="userone";
$record->password="pass";

$stream=new fstream;
$stream->write($record,"obj.txt","ab"); //append binary

?>

<?php
//read example
include("fstream.php");
class user
{
public $username;
public $password;
}
$record=new user;
$stream=new fstream;
$stream->read("obj.txt"); //read the file
$stream->getrecord($record,1); //here 1 is the record number if record was not found false is returned
echo $record->username; //ouput:userone
echo $record->password;//output:pass
?>

DONT EDIT streamconfig.dat with notepad or any other text editor .it is strongly recomended that you use a hex editor

can read upto 20,000 records in less than a 1 sec.
example record: username,passwod,email,DOB




