View Single Post
  #8 (permalink)  
Old July 25th, 2003, 04:05 PM
marcostraf marcostraf is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is just one problem with this code: if the file is huge it is not a very good
idea to allocate all the data in memory. And the Redim Preserve can be very expensive!

Marco

Quote:
quote:Originally posted by alex_read
 I think I've understtod this right & here's my take on the above, let me know if this isn't what you're after:

[code]Private Const cstrFILETOCHECK As String = "C:\SampleFile.txt"
Private Const cstrFILETOWRITETO As String = "C:\2ndSampleFile.txt"


Reply With Quote