Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Help with text scrape
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

concep86
Junior Member

USA
140 Posts

Posted - 23 March 2001 :  08:12:43  Show Profile  Visit concep86's Homepage
I have this code to pull from a text file
_______________________________________

<%
' Create the textfile object
set myTextfile = Server.CreateObject("MSWC.NextLink") %>

<table border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<div align="center"><font face="Arial, Helvetica, sans-serif"><b>Online registrations</b></font></div>
</td>
</tr>
<tr>
<td><div align="left">
<%
' Make a connection to the text file and ask for how many URLS in the file
numPages = myTextfile.GetListCount("test.txt")
for N = 3 to numPages
' next line is the URL printing %>
<%= myTextfile.GetNthURL("test.txt", N)%>
<br>
<% ' then we loop it with the next statment
next %>
______________________________________



My text file looks like this.
_______________________________________


1
2
Information Application C:\OnLineReg.log: Thread ID: 342 ,Logged: 3/23/00 1:45:00 PM CFP Registration Process Start
Information Application C:\OnLineReg.log: Thread ID: 342 ,Logged: 3/23/00 1:45:03 PM Process Complete. Total Registrations Processed: 1; Successfully Processed: 1; Failures Processed: 0; Duplicate Registrations: 0
Total Profiles Processed: 1; Successfully Processed Profiles: 1; Bad Profiles: 0; Duplicate Profiles: 0
Information Application C:\OnLineReg.log: Thread ID: 125 ,Logged: 3/24/00 9:00:00 AM CFP Registration Process Start
Information Application C:\OnLineReg.log: Thread ID: 125 ,Logged: 3/24/00 9:00:01 AM Process Complete. Total Registrations Processed: 0; Successfully Processed: 0; Failures Processed: 0; Duplicate Registrations: 0
Total Profiles Processed: 0; Successfully Processed Profiles: 0; Bad Profiles: 0; Duplicate Profiles: 0
Information Application C:\OnLineReg.log: Thread ID: 274 ,Logged: 3/27/00 9:14:26 AM CFP Registration Process Start
Error Application C:\OnLineReg.log: Thread ID: 274 ,Logged: 3/27/00 9:14:52 AM The Following Error has occurred in clsMail:WriteProfile: 13:Type mismatch
Information Application C:\OnLineReg.log: Thread ID: 274 ,Logged: 3/27/00 9:14:56 AM Process Complete. Total Registrations Processed: 30; Successfully Processed: 25; Failures Processed: 0; Duplicate Registrations: 5
Total Profiles Processed: 19; Successfully Processed Profiles: 18; Bad Profiles: 1; Duplicate Profiles: 0
Information Application C:\OnLineReg.log: Thread ID: 289 ,Logged: 3/28/00 9:21:50 AM CFP Registration Process Start
Information Application C:\OnLineReg.log: Thread ID: 289 ,Logged: 3/28/00 9:22:00 AM Process Complete. Total Registrations Processed: 9; Successfully Processed: 9; Failures Processed: 0; Duplicate Registrations: 0
Total Profiles Processed: 7; Successfully Processed Profiles: 7; Bad Profiles: 0; Duplicate Profiles: 0
Information Application C:\OnLineReg.log: Thread ID: 256 ,Logged: 3/29/00 9:17:05 AM CFP Registration Process Start
Information Application C:\OnLineReg.log: Thread ID: 256 ,Logged: 3/29/00 9:17:31 AM Process Complete. Total Registrations Processed: 27; Successfully Processed: 25; Failures Processed: 0; Duplicate Registrations: 2
Total Profiles Processed: 20; Successfully Processed Profiles: 20; Bad Profiles: 0; Duplicate Profiles: 0


What i want to do is, is display the last line in the file only

Total Profiles Processed: 20; Successfully Processed Profiles: 20; Bad Profiles: 0; Duplicate Profiles: 0


How can I do this?

Concep86
Webmaster
http://www.coneciones.com
http://www.amercoll.edu




Edited by - CONCEP86 on 23 March 2001 09:07:53

concep86
Junior Member

USA
140 Posts

Posted - 23 March 2001 :  09:14:58  Show Profile  Visit concep86's Homepage
Figured it out.

Changed this line from this

for N = 3 to numPages

to this

for N = numPages to numPages




Concep86
Webmaster
http://www.coneciones.com
http://www.amercoll.edu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07