the content of a text file that is write looks like this:
"\\fc1\drive_e$\","\\fc2\drive_e$\","\\fc3\drive_e$\","\\fc4\drive_e$\","\\fc5\drive_e$\","\\fc6\drive_e$\","\\fc7\drive_e$\","\\fc8\drive_e$\","\\fc9\drive_e$\"
I want to use the contents of the text file as an array:
Set fs = CreateObject("Scripting.FileSystemObject")
Set ts = fs.OpenTextFile("c:\machinesToCheck.txt", 1)
s = ts.ReadLine
arrTest = array(s)
ts.Close
for i = 0 to ubound(arrTest)
msgbox arrTest(i)
next
but the msgbox that appears contains the whole string. Is what I'm trying to do not possible?
Thanks
"\\fc1\drive_e$\","\\fc2\drive_e$\","\\fc3\drive_e$\","\\fc4\drive_e$\","\\fc5\drive_e$\","\\fc6\drive_e$\","\\fc7\drive_e$\","\\fc8\drive_e$\","\\fc9\drive_e$\"
I want to use the contents of the text file as an array:
Set fs = CreateObject("Scripting.FileSystemObject")
Set ts = fs.OpenTextFile("c:\machinesToCheck.txt", 1)
s = ts.ReadLine
arrTest = array(s)
ts.Close
for i = 0 to ubound(arrTest)
msgbox arrTest(i)
next
but the msgbox that appears contains the whole string. Is what I'm trying to do not possible?
Thanks