title: File based configuration handling in C (Unix)
body: <p>This is probably one of the most common tasks / problems when programming; You need to store the configuration of your application somewhere.</p>
  
  <p>While I'm trying to create a webserver or other applications, I'd like to keep the code as clean as possible since my main interest in programming is architecture. This results in me wanting to store configurations in a file which can be changed without having to re-compile the software.</p>
  
  <p>I'm not here to re-invent the wheel or anything like that, so what I'd like to do is creating a Configuration reader in C on *nix. The configuration might look a lot like any other software's configuration; Apache, vsftpd, MySQL, etc.</p>
  
  <p>The basic question is: How do you read from a textfile and process each line efficiently (in pure C)? Do I need to use <code>fgetc()</code> and process each char?</p>