I have a text file which has user-id and passwords. What&#039s the best way in asp to do a validation using a text file when a user hit Submit button.<BR>I tried using the below but it gives an error &#039Microsoft VBScript runtime error &#039 800a003e&#039 Input past end of file &#039<BR><BR>&#060;%<BR>dim ofso<BR>dim ofile<BR>Const ForReading = 1, ForWriting = 2, ForAppending = 8 <BR> Set ofso=CreateObject("Scripting.FileSystemObject")<BR > Set ofile = ofso.OpenTextFile("Security.txt",ForReading,True)< BR> usrID = ofile.ReadLine<BR> ofile.close<BR>%&#062;<BR><BR>Also how do I loop it to read all the records from the text file. How do I check id and password both. Can I use #include instead of this.<BR>my txt file format is:<BR>userid=password<BR>user1=abc<BR>user2=def<B R>user3=efg<BR><BR>Your help will be greatly appreciated.