// takes a string and parses it into one record per line,
// one vtiger_field per delimiter, to a maximum number of lines
// some vtiger_files have a header, some dont.
// keeps track of which vtiger_fields are used
/** function used to parse the file
* @param string $file_name - file name
* @param character $delimiter - delimiter of the csv file
* @param int $max_lines - maximum number of lines to parse
* @param int $has_header - if the file has header then 1 otherwise 0
* @return array $ret_array - return an array which will be "rows"=>&$rows, "field_count"=>$field_count where as &rows is the reference of rows which contains all the parsed rows and $field_count is the number of fields available per row
* @param character $delimiter - delimiter of the csv file
* @param int $max_lines - maximum number of lines to parse
* @param int $has_header - if the file has header then 1 otherwise 0
* @return array $ret_array - return an array which will be "rows"=>&$rows, "field_count"=>$field_count where as &rows is the reference of rows which contains all the parsed rows and $field_count is the number of fields available per row