<%
dimfso,f1
ConstForReading=1
setfso=createobject("Scripting.FileSystemObject")
''Use fso object to read information.
setf1=fso.OpenTextFile("E:/doit/info2.txt",ForReading)
''Open the file to be read
dimconn,rst
setconn=server.createobject("adodb.connection")
''Create a database connection and perform operations
setrst=server.createobject("adodb.recordset")
conn.open"Driver={Microsoft AccessDriver(*.mdb)};DBQ="&Server.mappath("db1.mdb")
rst.activeconnection=conn
dimfread
dowhilenotf1.atEndOfStream
''Insert data with do...loop loop
fread=f1.readline
line=split(fread,":::")
rst.source="insertintobarcode1(barcode1)values("&trim(line(0))&")"
rsst.open
loop
f1.close
conn.close
''''allover
%>