..
The Skip method of 'TextStream skip a specified number of characters when reading a file TextStream.
It requires only one mandatory parameter, which is an indication of the number of characters to skip.
Let's take an example.
Suppose you have a text file (c: \ test.txt) with the following contents:
Hello WorldNow we see the code:
dim fs, t, x
'I create an instance of the FSO
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'I open the file in read mode
set T = fs.OpenTextFile ("c: \ test.txt", 1, false)
'Jump the first 3 characters
t.Skip (3)
'I read the file
x = t.ReadAll
'Close
t.close
'I cleaned
set T = Nothing
Set fs = Nothing
'Print to video
Response.Write (x)
Output:
or the World
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |