Home > Back-end >  C scan the content of the file specified was used to extract specific content for help
C scan the content of the file specified was used to extract specific content for help

Time:11-21

Most well-known software will have a cache directory, now need a program to read the contents of the other files, and extract the needs of specific information stored in the corresponding cache directory (main), because they don't know where the file with specific content, so need to scan directories and files (regional)

Additional information:
Need to extract the content as follows: the out put words
Is said to be scanned file called: TheFile

CodePudding user response:

First to determine access to the file, if a file is mutual exclusivity to open, the subsequent program is can't open this file,

CodePudding user response:

Solution, only supplies the reference:
1. The opendir
2. The loop readdir
A. normal file, file name, scans the specified string STRSTR function,
C. other types of files, ignored the continue,
B. directory, recursive opendir,
End of the 3.
  • Related