VBScript - TechRepublic
General discussion
April 11, 2001 at 02:01 AM
ianc

VBScript

by ianc . Updated 25 years, 1 month ago

I’ve been trying to use the READLINE method/property to read lines from a text file based on their line number. Does anyone know if READLINE accepts arguments?

Following is the syntax.

for Row = RowCount to 1 step -1
sProfile=i.ReadLine (Row)
o.WriteLine sProfile & ” ” & Row
fnd = instr (sProfile, SearchPro, 1)
WScript.echo “Row #: ” & row & “String ” & sProfile
Next

This discussion is locked

All Comments