Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Methods
TextStream Object
METHOD: TextStream.Skip
Implemented in version 2.0
object.
Skip
(numberofcharacters)
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.
Code:
<%
dim filesys, text, readfile, contents
set filesys = CreateObject("Scripting.FileSystemObject")
Set text = filesys.CreateTextFile("c:\somefile2.txt")
text.WriteLine "A quick example of the Skip 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 & "'."
%>
Output:
"From column 11 the line contains the following text - 'ample of the Skip method'."
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information