reading array elements from a txt file
i am able to read from a txt file and this is the code:
how can i loop the content of this txt file like an array?
Const fsoForReading = 1
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Open the text file
Set objTextStream = objFSO.OpenTextFile("C:\test\testingArrayElements.txt", fsoForReading)
'Display the contents of the text file
Set objTextStream = Nothing
Set objFSO = Nothing
my normal code which has an array and a for loop looks like this:
i have now the array elements in my txt file and i want to do the same thing as above but now i want to read and loop them from a txt file. can anybody direct me how can i customize these two pieces of code????
For i = 1 to 4
strRetVal = strRetVal+xObj.Retrieve(extracturlArr(i),Request_G ET,"","","")