cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
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
nicedude80
(17)
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
Zhuge
(4664)
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.