client/SecretStore.class.php
//read a string consisting of $len bytes from $fp, in as many chunks as it takes. returns the string on success, boolean false otherwise
read a string consisting of $len bytes from $fp, in as many chunks as it takes. returns the string on success, boolean false otherwise
read a string consisting of $len bytes from $fp in as many chunks as it takes . returns the string on success boolean false otherwise
protected static function read($fp, $len)
	{
		for($read="";$len>0;$len-=strlen($fread),$read.=$fread)
			if(($fread=fread($fp, $len))===false)
				return false;
		return $read;
	}
protected static function read ( $ fp , $ len ) { for ( $ read = " " ; $ len > 0 ; $ len -= strlen ( $ fread ) , $ read .= $ fread ) if ( ( $ fread = fread ( $ fp , $ len ) ) === false ) return false ; return $ read ; }
read a string consisting of $len bytes from $fp, in as many chunks as it takes.
read a string consisting of $len bytes from $fp in as many chunks as it takes .