The answer is a simple one, for IIS6 do the following (all other IIs's should be similar)

right click the file i.e. visits.txt
select the security tab
add the internet guest user account eg IUSR_YOURSEVERNAME
give the user permissions to write/modify to the file in question

thats it, think about giving permissions to folder though

hope it works for you.