I am trying to create a recordset from a textfile.
I have imported and seperated the records in the text file:
Set fs=Server.CreateObject("Scripting.FileSystemObject"
Set f=fs.OpenTextFile(Server.MapPath("penny.txt", 1)
do while f.AtEndOfStream = false
ad= f.ReadLine
I have set the recordset object(I need the paging ability)
set rsAD = server.CreateObject("ADODB.RecordSet"
rsAD.PageSize = PAGE_SIZE
rsAD.CacheSize = PAGE_SIZE
rsAD.Open ?????, connTEMP, adOpenStatic, adLockReadOnly, adCmdText
recCntr = rsAD.RecordCount
pgCnt = rsAD.PageCount
I just don't know how to get each line of the text file in to the recordset. Can you point me in the right direction?
thanks
I have imported and seperated the records in the text file:
Set fs=Server.CreateObject("Scripting.FileSystemObject"
Set f=fs.OpenTextFile(Server.MapPath("penny.txt", 1)
do while f.AtEndOfStream = false
ad= f.ReadLine
I have set the recordset object(I need the paging ability)
set rsAD = server.CreateObject("ADODB.RecordSet"
rsAD.PageSize = PAGE_SIZE
rsAD.CacheSize = PAGE_SIZE
rsAD.Open ?????, connTEMP, adOpenStatic, adLockReadOnly, adCmdText
recCntr = rsAD.RecordCount
pgCnt = rsAD.PageCount
I just don't know how to get each line of the text file in to the recordset. Can you point me in the right direction?
thanks