I want to use Python to make something similar to the fc command found in MS-DOS and Windows. How would I handle opening 2+ files and reading them a byte at a time for comparing?
Miyuki 0 Newbie Poster
Recommended Answers
Jump to PostYou might want to play with the Python builtin module filecmp:
# compare two files and check if they are equal # files can be binary or text based import filecmp # pick two files you want to compare ... file1 = "Boing1.wav" file2 = "Boing2.wav" if …
All 4 Replies
BearofNH 104 Posting Whiz
bumsfeld 413 Nearly a Posting Virtuoso
biveesh 0 Newbie Poster
Jack_9 -4 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.