The examples specifically read and alter a configuration file, but you can use these concepts for any of the type of tasks at that arise in a UNIX developers life.
Because root can alter any file on the system, it was easy to inadvertently alter a running system by adding extraneous files or removing important files during interim builds of an RPM.