Modified read_table_file function to allow different comment characters.