Before, in function load_file_names, an fstream was created to read in the provided .txt file. However fstream opens with read/write by default, which forced the input file to need write permissions. I added ios::in to fstream, which allows the input file to be read-only.
Before, in function
load_file_names
, anfstream
was created to read in the provided.txt
file. Howeverfstream
opens with read/write by default, which forced the input file to need write permissions. I addedios::in
tofstream
, which allows the input file to be read-only.