Re: Binary comparison of files

Phil Sayers <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <003d01c98176$118c4820$34a4d860$@net>
Chances are this doesn't suit your scenario...but on the 1% off chance it
may, since I do something similar here.

If you have access to a source control system or these files do need to get
updated in source control..
Subversion (& most likely cvs) has command line tools/arguments to see if
there are "pending changes" that need to be committed, so you can just
overwrite "existing file" with "possibly changed file" and do a "is a
checkin/commit needed?" using the output (which can be xml with svn) from
the command line tool.





-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[email protected]] On Behalf Of Eddie Lascu
Sent: Wednesday, January 28, 2009 1:04 PM
To: [email protected]
Subject: [ADVANCED-DOTNET] Binary comparison of files

Hello again,
 
I need to quickly check if the content of a file has changed. Time stamps
when the file is created are not available, as this file is read from the
Internet with XmlTextReader. I was thinking to use a quick binary comparison
of the old image (provided I keep one) with the newly red file. Files are in
size between 100 kb and 150 kb, so not too big. I need to come up with the
fastest way to compare the files, because timing is an issue.
Any suggestion as to what may be the best approach to do this?
 
Regards,
Eddie

===================================
View archives and manage your subscription(s) at
http://peach.ease.lsoft.com/archives

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.