<?php
class ZohoOAuthUtil
{
	public static function getFileContentAsMap($fileHandler)
	{
		$reponseMap=array();
		try{
			while(!feof($fileHandler))
			{
				$line=fgets($fileHandler);
				$lineAfterSplit=explode("=",$line);
				if(strpos($lineAfterSplit[0],"#")===false)
				{
					$reponseMap[trim($lineAfterSplit[0])]=trim($lineAfterSplit[1]);
				}
			}
			fclose($fileHandler);
		}
		catch (Exception $ex)
		{
			throw $ex;
		}
		return $reponseMap;
	}
}
?>