Version: 2.0
Causes the file pointer to skip ahead a specified number of characters when reading a TextStream file.
This method causes the file pointer to skip forward the integer number of characters specified in the argument when reading a TextStream file. The skipped characters are simply ignored.
<%
dim filesys, text, readfile, contents
set filesys = CreateObject("Scripting.FileSystemObject")
Set text = filesys.CreateTextFile("c:\somefile2.txt")
text.WriteLine "A quick example of theSkip method"
text.close
set readfile = filesys.OpenTextFile("c:\somefile2.txt", 1, false)
readfile.Skip(10)
contents = readfile.ReadLine
readfile.close
Response.Write "From column 11 the line contains the following text - '" contents "'."
%>
"From column 11 the line contains the following text - 'ample of the Skip method'."