I want to code program read file *.prc but I don't know struct file who know help me !
only read file *.prc !
Printable View
I want to code program read file *.prc but I don't know struct file who know help me !
only read file *.prc !
*.prc might actually indicate a lot of files and you will need code to resolve it to individual filenames... This means using 3rd party or addon libraries for C with commands like FindFirstFile(), FindNextFile(), etc.
Once you have a list of names you can begin opening them one at a time and dealing with them per your needs with commands like fopen(), fread(), fwrite() etc.
Parsing directories is not a trivial task and it's a little different on each operating system, so you will need to know exactly which libraries to get/use...
Do some reading up, work it out on paper, write some preliminary code and post it up... from there we can help you.