Handle TSV and CSV files