Results 1 to 2 of 2

Thread: files

  1. #1
    harish Guest

    Default files

    I have a .txt file in which i have 1000 lines.<BR>I want to read the file starting from 700th line to 1000th.<BR>In other words how do I go directly to 700th line using filesystem object.

  2. #2
    Rahul Padgaonkar Guest

    Default RE: files

    &#060;%<BR> set myfileobject=server.createobject("scripting.filesy stemobject")<BR> set mytextfile=myfileobject.opentextfile "c:inetpubwwwrootdata.txt")<BR><BR>&#039 Give the path of your text file. My text file contains 20 lines and I have skipped <BR>&#039 first 14 line and displaying the rest of the lines.<BR><BR> for x=1 to 14<BR> mytextfile.skipline<BR> next<BR> while not mytextfile.Atendofstream<BR> response.write(mytextfile.readline)<BR> wend<BR> mytextfile.close<BR>%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts