I want to loop through a text file and output two variables for each line and 
insert them into two respective database fields.  The first variable needs to 
be only the date.  

The second variable will be everything from the right of the two dashes to just 
before the next record that starts with the date. Sometimes the records have 
multiple lines with carriage returns at the end.  The date always signifies the 
start of a record.

I have an idea on how to do it but I could use other suggestions.

Thanks!

Below is a sample of the log:

02/23/2005 11:08:33 AM ale      

02/23/2005 11:08:35 AM ale      

03/31/2005 11:19:35 AM sdanas   -- Send File 'D:\Documents and 
Settings\sdanas\Desktop\All_Org.ppt' '/drweb/www/lt/dmrb/test9/All_Org.ppt'
03/31/2005 11:19:38 AM sdanas   -- File: All_Org.ppt upload complete at Thu Mar 
31 11:19:38 CST 2005!  Total Size: 157.5 KB (0.154 MB).
03/31/2005 11:19:38 AM sdanas   -- Send File 'D:\Documents and 
Settings\sdanas\Desktop\LMDB 8.1.7.xls' 
'/drweb/www/lt/dmrb/test9/LMDB_8.1.7.xls'
03/31/2005 11:19:41 AM sdanas   -- File: LAR 8.1.7.xls upload complete at Thu 
Mar 31 11:19:41 CST 2005!  Total Size: 27 KB (0.026 MB).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase RoboHelp from House of Fusion, a Macromedia Authorized Affiliate and 
support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=59

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:846
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to