Hi,
I am trying to add a list of info to a text file. This works fine, but if I add an item
afterwards it is important to add it alfabetically.
I am trying to do this by running through the
file. Checking the line from the file with the new data.
Adding the one that needs to be added first
to a new file. Then copying the new file over
the old.
This works fine for the most part. The problem is I need to compare the line from the file and a new string.
I have narrowed them down to both being strings of 25 long.
So I try
if ($string1 < $string2) รง{...
this doesn't seem to work correctly.
Any ideas?