I'm Working on a project which reads input from a file. I need to find a way to save the filename of the file that is being read into my program. Is there some funtion associated with fstream or another way to get the file name?
On a related note, Can maps hold 2 strings? I have seen them used effectively in the use of counters, but is it possible to have map<string, string> s ?? The second string would hold the file name of the file that was read in, and the first string would hold the word that was found in the file that was read in, compared to words in another file.