Ken wrote:
Hello,
I'm trying to make a c++ program that first looks for a specific file
and then edits it. This file can be everywhere on the computer.
Someone any idea how i can search the computer for a specific file in
c++ ?
Greetings,
Ken
There are no facilities in C++ for searching for files.
You will have to use platform specific functions.
Please read the welcome.txt in my signature as well
as these sections of the FAQ:
http://www.parashift.com/c++-faq-lite/input-output.html
The reason is that not all platforms support
directories. Of those that do, not all of them
have the same directory structure or organization.
Compare for example: MacIntosh, Windows, Unix and
VMS platforms. If you want extremes, consider other
operating systems and embedded systems that don't
have files. See news:comp.arch.embedded.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book