Brett Barabash
BBarabash at TappeConstruction.com
Thu Jul 31 09:08:04 CDT 2003
With all due respect to the OO community, does this really warrant a special text file reader class? I was thinking of something along the lines of: Dim lngIn As Long Dim lngOut As Long Dim strBuffer As String lngIn = FreeFile Open "c:\input.html" For Input As lngIn lngOut = FreeFile Open "c:\output.html" For Output As lngOut Do Until EOF(lngIn) Line Input #lngIn, strBuffer 'Insert any string replacement code here Print #lngOut, strBuffer Loop Close #lngIn Close #lngOut WIth much deference &c. in the absence of JC I shall propose writing (or borrowing) a class :-) There's a lovely text file reader class in ADH2K for reading text files. You can also do it by hand with a little less work, but once you've got the class installed it's a piece of cake. Do yoiu have ADH? Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: July 30, 2003 4:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] HTML Email from Access - Progress Andy, Can you explain just a little more specifics on how you did this: "....Just read it in line by line and built up a string...." Thanks, Steve Capistrant -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030731/171cd43c/attachment-0001.html>