update extractRowData to use str_fgetcsv instead of explode