removed unnec pass in file_to_txt