Fixed bug: didn't open .csv files, but .txt files