Im trying to open a file on my server and check for the existance of a line within the file lets call it $Account399.
where $Account399 = "#Acct399"
if it is already present then to exit with the message "Entry already exists"
else if the line does not exist then create it
all future line entries must reference the position of the last written entry and be written after it.
So within the file the end result looks like
#Account399
#Account201
#Account587
etc.
etc.
hope this helps. My idea is to use something like egrepi to search for the last written line, but im not familiar with any regular expressions that will find a pattern within a file, rather than a string.
Kenderized
Kenderized