Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

diff in bytes
Is there a way to compare two binary files to determine at what byte counts
the files are different?
I finally found a random \r\n in one file where only a \n existed in the
other.  My numerous file editors
don't show this...so visually the two "happy face" files always looked the
same...but they were slighly different in
size.  My diff program I have failed me on this as it compares ascii line by
line.  It found the difference but it reported
it as a  line number, not helpful in a binary file!
I solved it with a lot of labor by using PEDIT in hexdisplay mode from an
old old Wordperfect distribution!
I was thinking...perhaps a simple awk program would do the  trick (?)
I'm working in Windows 2000.
Thanks
REX



Report this thread to moderator Post Follow-up to this message
Old Post
T-Rex
03-20-04 01:23 AM


Re: diff in bytes
In article <dFtXb.178877$U%5.856423@attbi_s03>,
T-Rex <Rex_Bryan@csi.com> wrote:
>Is there a way to compare two binary files to determine at what byte counts
>the files are different?
>I finally found a random \r\n in one file where only a \n existed in the
>other.  My numerous file editors
>don't show this...so visually the two "happy face" files always looked the
>same...but they were slighly different in
>size.  My diff program I have failed me on this as it compares ascii line b
y
>line.  It found the difference but it reported
>it as a  line number, not helpful in a binary file!
>I solved it with a lot of labor by using PEDIT in hexdisplay mode from an
>old old Wordperfect distribution!
>I was thinking...perhaps a simple awk program would do the  trick (?)
>I'm working in Windows 2000.

Does 2K have FC (I know '98 does) ?
FC works well enough for this task - by MS standards anyway.

Followups set.


Report this thread to moderator Post Follow-up to this message
Old Post
Kenny McCormack
03-20-04 01:23 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

AWK archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:04 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.