concep86
Junior Member
 
USA
140 Posts |
Posted - 23 March 2001 : 08:12:43
|
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 |
|