I get my data from a txt file.
Is it possible to get that data and sort it in alfabetical order and then send it to my flash movie?
How do I do that?
Here´s the code I use to get the data from the txt file
$filename = "nyheterinput.txt";
$fp = fopen( $filename,"r");
$Data = fread($fp, 800000);
fclose( $fp );
$DataArray = split (".:::.", $Data);
$NumEntries = count($DataArray) - 1;
print "&TotalEntries=$NumEntries&NumLow=$NumLow&NumHigh=$NumHigh&GuestBook=";
for ($n = $NumLow; $n < $NumHigh; $n++) {
print $DataArray[$n];
if (!$DataArray[$n]) {
Print "<br><br><b>No More entries</b>";
exit;
}
}
The text in the txt file is in html format does that affect the sorting in any way?
Thx