Re: Question on C



Thomas Keaney wrote:
> My problem is that I want to search a certain directory in order to
> find a file. If the file exists I can then enter in the name of the file
> in my interface. However, if it doesnt exist, I will then place a dot
> in front of the file's name. Any ideas?

Sooooo, what exactly seems to be the problem ?

Do you not know how to search the directory ?

#include <dirent.h>
(man opendir/readdir)

HTH,
              -Tristan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]