title: Using ini-file-comments with TIniFile-ReadSection with Lazarus/FreePascal
body: <p>using <a href="https://www.freepascal.org/docs-html/fcl/inifiles/tinifile.readsection.html" rel="nofollow noreferrer"><code>TIniFile.ReadSectionValues</code></a> with Lazarus/FreePascal I (thought) I shouldn't get a comments (with ";" in at the beginning of the line in an ini-file) as an output. Using <a href="https://www.freepascal.org/docs-html/fcl/inifiles/tinifile.readsectionraw.html" rel="nofollow noreferrer"><code>TIniFile.ReadSectionValuesRaw</code></a> I should. But the following code snippet which uses <code>TIniFile.ReadSectionValues</code> also reads the comment lines, why is that? Thx!</p>
  
  <pre><code>var iniFile : TINIFile; 
  var strList : TStringList; 
  var intIndex : Integer; 
  
  iniFile := TINIFile.Create('TaskMaster.ini');
  strList := TStringList.Create;
  iniFile.ReadSectionValues('IniSection',strList);
  for intIndex := 0 to strList.Count - 1 do begin
      ShowMessage (strList.strings[intIndex]);
      end;
  iniFile.Free;
  strList.Free;  
  </code></pre>
  
  <p>Here's the ini-File:</p>
  
  <pre><code>[IniSection]
  test1=something
  ;test2=something else
  ; test3=still something else
  </code></pre>
  
  <p>according to this <a href="https://stackoverflow.com/questions/21867210/write-ini-files-with-comment-lines-using-tinifile-class">entry</a> comments don't work, but the doc for  <a href="https://www.freepascal.org/docs-html/fcl/inifiles/tinifile.readsection.html" rel="nofollow noreferrer"><code>ReadSectionValues</code></a> and  <a href="https://www.freepascal.org/docs-html/fcl/inifiles/tinifile.readsectionraw.html" rel="nofollow noreferrer"><code>ReadSectionValuesRaw</code></a> brings me to a different understanding.</p>