You are wanting to actually write to a file on the client's local machine by way of an ASP document?
That's can be a pretty big endeavor, and I am not sure if it is even technologically possible due to the concept and methodology of how web browsers work to protect that from happening.
You may be able to create an ActiveX control to do this, but that's a whole different ball game.
Kael