Open In App

ASP Skip Method

Improve
Improve
Like Article
Like
Save
Share
Report

The ASP Skip Method is used to skip/ignore a specified number of characters at the time of reading the contents of the Text File. 

Syntax

TextStreamObject.Skip(numchar)

Parameter Values 

  • numchar: Required attribute. It specifies the number of characters that we want to skips when reading the text file.

Example Code: Below code illustrates the ASP Skips Method. 

ASP




<%
dim fs,f,t,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("d:\GFG.txt")
f.write("Hello GeeksForGeeks")
f.close
  
set t=fs.OpenTextFile("d:\GFG.txt",1,false)
t.Skip(11)
x=t.ReadAll
t.close
Response.Write(x)
%>


Output:

ForGeeks

Last Updated : 03 Mar, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads