tomthumbkop
Wed Apr 28 13:57:14 CDT 2004
Try:
Code
-------------------
Const ForReading = 1
Dim System, FSO, fs1, rs1
Set fso = CreateObject("Scripting.FileSystemObject")
Set fs1 = fso.OpenTextFile("c:\test\testfile.txt", ForReading)
rs1 = fs1.readline
-------------------
Dthmtlgod wrote:
> *I am trying to read the first line of the text file it is no
> working? Any
> ideas?
>
> Dim System, FSO, fs1, rs1
> Set fso = CreateObject("Scripting.FileSystemObject")
> Set fs1 = fso.OpenTextFile("c:\test\testfile.txt", ForReading)
> rs1 = fs1.readline
> msgbox rs1
-
tomthumbko
-----------------------------------------------------------------------
Posted via
http://www.codecomments.co
-----------------------------------------------------------------------