I use a text file as a database in several of my scripts for my webpage, It isnt taking many hits now, but it will in the future. When this happens I am unsure on what will occur when two people access the file at the same time, I dont think it will do what I want and it will probably destroy the text file. Anyway is there a way to lock the file, and then, how do I handle the situation where a user tried to access the file, but it was locked.<BR><BR>any articles covering this topic would be appreciated.<BR><BR>thanks,<BR>Justin