You can change the input or that file is created with another program?
If you can change it I recommend you to use something like CSV, INI or XML...
CSV:
var
myfile: TStringList;
temp: TStringList;
i: integer;
begin
myfile := TStringList.Create;
myfile.LoadFromFile('file.txt');
for i:= 0 to myfile.Count - 1 do
begin
temp := TStringList.Create;
temp.CommaText := myfile[i];
//temp[n]
//0,1,2, 3, 4, 5
//A,2,BOOKED,Parrot,Ryan,21/07/1995
temp.Free;
end;
myfile.Free;