I'm trying to open a text file using this statement
Set objTextFile = objFSO.OpenTextFile (File, fsoForReading, False)
but I get this error.
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/ups/csvfile2.asp, line 71
When I put a static "C:\Inetpub\wwwroot\ups\TempData.txt" instead of a variable it works. Am I allowed to use a variable for the file name? I didn't want to spend a huge amount of time error checking what's in the File variable if I can't even do it in the first place. Thanks.