Hi. I'm just starting with C, I've done quite a bit of programming in some other languages. I find it easy for myself to learn by example, and what better example than a utility I need?
Basically, I have thousands of files inside hundreds of folders. I want a program to go through those files, and inside each, there may be multiple instances of things like:
I need it to search through each of those instances, and find a specified attribute, and change the value. However, there are also rules for other attributes. Example:Code:example asdf attribute1 sdff attribute2 12 attribute3 test end
Whenever attribute 2 is equal to 12, make attribute 3 equal "test2".