
How To Skip Characters In A Text File
The following script demonstrates how to skip characters in a text file. It will read the text file asp_demo.txt and skip the first 5 characters.
The text file asp_demo.txt contains the following text:
Welcome to www.wizzardweb.co.uk!
Example
me to www.wizzardweb.co.uk!
Script Source
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(Server.MapPath("asp_demo.txt"), 1)
f.Skip(5)
Response.Write(f.ReadAll)
f.Close
Set f=Nothing
Set fs=Nothing
%>
Please let me know if this script was helpful to you.
[rating]