make sure that `out_data_files[filenum].filename` is big enough to add a `.txt` extension