DiGiTAL
Mon Oct 16 13:23:47 CDT 2006
This is an easy way to pick out a specific numbered line from a file:
[code]
Dim oFile, oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.OpenTextFile("c:\dev\test.txt",1)
Dim i
For i = 1 To 5
oFile.SkipLine
Next
WScript.Echo oFile.ReadLine 'This will print line 6
[/code]
---
Life is all about ass; you're either covering it, laughing it off,
kicking it, kissing it, busting it, trying to get a piece of it,
behaving like one, or living with one!
*** Sent via Developersdex
http://www.developersdex.com ***