Hello. We asked to write a program that allows you to copy even / odd / all lines of the source text file into the resulting file. That is, the program reads a text file, displays it in the Memo-field. Then on the GroupBox form, we have two CheckBox checkboxes, one for even lines, the other for odd lines, and a save button. There is no problem with the implementation of reading a text file. But then there are problems with the allocation of even / odd lines from the mem-field. This is what is given to us for solving this problem, but from this a clear picture does not emerge.
(button) Button OnClick Event: button click
(memo field)
Lines [i] - Appeal to the i-th line of the memo-field. The first line has index 0. `` Clear-clear memo area.
Lines.Add
Lines.LoadFromFile
Lines.Count Number of lines in the memo field.
(component - checkbox) CheckBox Checked Checkbox status: checked (True) / cleared (False). OnClick Event: click on the checkbox
Please tell me how you can implement this program.