title: Error on reading .ini file -> Parsing error: Key name is not valid
body: <p>I am actually reading several .ini files in a loop from a console application.
  All of them is being read correctly except one.</p>
  
  <p>Find my piece of code below;</p>
  
  <pre><code> var parser = new IniParser.FileIniDataParser();
   string DBPath;
  
   foreach (IniParser.KeyData i in dbList)
   {
      DBPath = "C:\\Program Files\Test\Database.ini";              
      IniData dbConn = parser.LoadFile(DBPath); 
  </code></pre>
  
  <p>However, I am having the following error on the last line;</p>
  
  <pre><code>"Parsing error: Key name is not valid"
  </code></pre>
  
  <p>The thing is that all of the .ini files resemble each other, and all the other is working fine.
  Anyone can guide me as to why this error occurs and how can I fix it please.</p>
  
  <p>Find below the stack trace;</p>
  
  <pre><code> at IniParser.StreamIniDataParser.ReadData(StreamReader reader, Boolean relaxedIniFormat)
     at IniParser.FileIniDataParser.LoadFile(String fileName, Boolean relaxedIniRead)
     at IniParser.FileIniDataParser.LoadFile(String fileName)
     at ReadIniFile.Program.Main(String[] args) in C:\Users\mkorumta\Desktop\ReadIniFile\ReadIniFile\Program.cs:line 33
     at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
     at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     at System.Threading.ThreadHelper.ThreadStart()
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>According to some more investigation, I found out that the .ini file is raising the error because of the Key name <code>[AAO-4 Data]</code>, where the <code>space</code> seem to be the culprit. Any idea how to avoid this error. Note that the ini file is generic and cannot be modified. I need to modify my code to be able to read the file.</p>
  
  <p>How do I force the code to ignore the space?</p>