I am creating a classifieds script. I am writing it so that an administrator can moderate the postings. I am storing the file to a temporary directory, and would like to save it to the first filename that is available. I am naming the files 1.dat, 2.dat, 3.dat. How could I name it the first available number.. so it all stays as low as possible?