title: Reading from a .txt file with an unspecified name but with a known directory c++
body: <p>I have built a program in c++ whitch checks how many words a text has.
  The text is stored in a .txt file in the same directory as my .exe file. I was wondering if there is a way to make the name of my .txt file irrelevant as long as the .txt file is in the same directory as my .exe file is? I would like to be able to change the name of the .txt file and still run my program successfully without getting a "error opening file" message.</p>