{
Lines example
This example uses a button and a memo control on a form. When the user clicks the button, the content of the system’s AUTOEXEC.BAT file is loaded into the memo, and the sixth line of the file is written across the top of the form.
} 
procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Lines.LoadFromFile('C:\AUTOEXEC.BAT');
  Writeln('The 6th line of AUTOEXEC.BAT is: ', Memo1.Lines[5]);
end; 
