Konopka, David wrote: > Can anyone recommend a way to determine whether or not two given text > files are not exactly the same in ColdFusion? > > I know the contents of both files can be loaded into variables, and > compared against each other, but I'm looking for a more efficient way. > > I don't need to see the differences, just an indication that they are > different or the same.
David: You could read in the contents of each file, generate a checksum for each via the Hash() function, and compare the 2 checksums. It's pretty much the same series of steps that you described above, but comparing checksums should be significantly faster than comparing large strings, especially if you're doing a case-insensitive comparison of the strings. -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257638 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

