I have the following code :
1. set readfile = filesys.OpenTextFile("c:\somefile2.txt", 1, false)
2. contents = readfile.ReadLine
The above line works only if i have datas in the file. If the file is empty, then i will get error in line 2. I have check for eof. In Visual Basic, EOF works.
But in VbScript, it wont work. What should i use in vbscript ?
Please help me in this regard.