Reading part of a line from a text file
Posted on 2003-11-09
I have a code which lets me read lines from a text file and displays each lines content into a separate Edit fields; I want to change it so that i can read parts of the line and not the entire line; for example say I have a text file which contains the following information.
Country France ;
Continent Europe ;
Language French ;
The following is my original code how would I change it so that read "France" "Europe" "French" in each of my edit fields rather then reading the whole lines.
Note: i want to read the part of the line regardless of the content, so if the content of the line is changed i still want to be able to read that same part of the line into the corresponding edit field; thanks
Edit1.Text := sl;
Edit2.Text := sl;
Edit3.Text := sl;