Reading and writing to a file that you d
Reading and writing to a file that you don't know the name of?
Oct 21, 2013 at 10:40pm UTC
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?
Oct 21, 2013 at 10:49pm UTC
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.
General C++ Programming
© cplusplus.com, 2000-2016 - All rights reserved -
Spotted an error? contact us