p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Parsing a web page


Message #1 by 9724613@s... on Fri, 23 Mar 2001 16:20:49
!

The example I gave reads the entire file, change that to a ReadLine and
encase it in  a while..loop. As for which line.. that is your guess. What
happens if the web site changes and the line positioning changes?

> -----Original Message-----
> From: 9724613@s... [mailto:9724613@s...]
> Sent: Tuesday, March 27, 2001 10:56 AM
> To: How To
> Subject: RE: Parsing a web page
> 
> 
> I am totally lost as to what you are doing in the secod part 
> of this code. 
> Also How do I read the actual line I need from the text file 
> 
> Thanks Christine 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hmm, sounds like it writes it to a file. All you have to do is read 
> > that
> > file as text, and manipulate it from there. Eg:
> > 
> > 		Set FS =3D CreateObject("Scripting.FileSystemObject")
> > 		Set ThisFile =3D fs.OpenTextFile("<location and 
> filename", 
> 1,
> > False)
> > 
> > 		sStr =3D ThisFile.ReadAll
> > 
> > 		ThisFile.Close
> > 		Set ThisFile =3D Nothing
> > 		Set FS =3D Nothing
> > 		.. manipulate string..
> > 

  Return to Index