title: GetPrivateProfileString not working .NET
body: <p>I want to make an INI reader with <code>GetPrivateProfileString</code>. What I'm using:</p>
  
  <pre><code>public class Config
  {
      [DllImport("kernel32")]
      private static extern int GetPrivateProfileString(string Section, string Key, string Default, StringBuilder RetVal, int Size, string FilePath);
  
      private string path;
  
      public Config(string path)
      {
          this.path = path;
      }
  
      public string PopValue(string section, string key)
      {
          StringBuilder sb = new StringBuilder();
          GetPrivateProfileString(section, key, "", sb, sb.Length, path);
          return sb.ToString();
      }
  }
  </code></pre>
  
  <p>Now my INI file:</p>
  
  <pre><code>[mysql]
  host=localhost
  </code></pre>
  
  <p>And what I use:</p>
  
  <pre><code>Console.WriteLine(Configuration.PopValue("mysql", "host"));
  </code></pre>
  
  <p>However, it just prints out a blank line instead of <code>localhost</code>. What am I doing wrong?</p>