title: Delphi ini file reading
body: <p>Im stuck and asking for your help te get a solution for reading my ini file back and placing that in my memo1 form with a button.</p>
  
  <p>This is in my text file:</p>
  
  <pre><code>[Filename]
  
  Work Time=03-10-2018 15:11
  </code></pre>
  
  <p>Here is some of the code im working with.</p>
  
  <pre><code>var
    aWorkTime: string;
  
  procedure TForm1.button2(Sender: TObject):
  begin
    Memo1.Lines.Clear;
  
    IniFile := TIniFile.Create(GetCurrentDir+'\Filename.ini');
  try
    aWorkTime := IniFile.ReadString('Filename', 'Work Time', &lt;'none'&gt;);
  finally
    IniFile.Free;
  end;
  end
  </code></pre>
  
  <p>I hope that this is enough information if not please tell me what you are missing from me</p>