TStringList object is used to store and manipulate a list of strings.
TStringList implements methods from Delphi
You Can:
Load/Save from/to File // Load/save external file to a TSTringList
IndexOf // Returns the position of a string in the list.
Sort // Sorting the StringList
Count // Indicates the number of strings in the list.
Clear // Deletes all the strings from the list.
Delete // Removes the string specified by the Index parameter
Insert // Inserts a string at the position specified by Index.
Add // Adds a new string to the end of list.
<?
$userfile = 'somefile.tmp';
require("ABClasses.inc");
if (!$SL->LoadFromFile($userfile)) echo $SL->GetLastError();
for ($l=0;$l<$SL->Count();$l++ )
echo $SL->Strings[$l].'<br>';
?>