can you help me a to write a code using vs studio 8 to read a diretory name as argument and then open the directory and read each file one at a time and find the match for a string passed as an nother argument in the lines of each file. When it matches create a file and write in that output file the file name whetre the match found, the line number and line which matched.
My vis does not have dirent.h. so please use another ways to read directory call witha system acll and then then extract the fienames in a file(use some primitive way to open the the directory)
I cant do this parts
(1) read a directory
(2) create a file with only file names
(3) read file names ans open the files one at a time till the end of the file reached