i am creating a web page that takes a registration code, checks a text file to make sure the code exists and then allows the user to enter the site. my problem is that i would like to then erase the code from the text file. what is the best way to do this with asp? do i have to, after checking for the match, read the file to a stream, delete the code and then overwrite the existing file? any tips would be appreciated.