Reading and writing to a file that you don't know the name of?

I was wondering if it is possible to find the title of a .txt without it being coded into the program. So if I have 2 .txts in the same folder as the .exe, how would I find out what the exes are called? So I can read and write to them?
You'd need to ask the OS via some API it gives you or use a wrapping library like Boost's filesystem one to do it for you.
Topic archived. No new replies allowed.