An important task you should know not just in ASP but also in any other programming language is how to read and write files. The algorithm on how to do this in ASP is just the same as any other programming languages you know and that is:
1. Specify the location of the file
2. Check if the file exists
3. Get the handle to the file.
4. Read its contents.
5. Close the file and release any resources used.
There are three methods on how you can do that and you’ll need to gain access to File I/O through the use of the FileSystemObject component.
Read the rest of the tutorial here:Â http://www.codeproject.com/Articles/251/Reading-a-text-file-in-ASP