Click to See Complete Forum and Search --> : file listing


anwar
August 10th, 2002, 07:30 AM
Hi,
I am writing a program that reads the contents of a file.
I want to specify a folder name & the program should read the files in that folder. Is there a standard function available that reads the contents of the folder i.e the file lisiting ?
Then once i get the file listing i could read the files.
I am writing the program in c langauge under windows.
thanks
anwar

Plastelin
August 13th, 2002, 08:44 AM
// watch for dir changes
FindFirstChangeNotification
// find file witch have being changed
_findfirst
_findnext
_findclose
// read this file
ReadFile