Comparing 2 text documents

I am currently having issues comparing two text documents. I am capable of writing it myself however I can not figure out how to go about the different line lengths.
I don't understand. If the line lengths are different, then the files are different. What's the problem?
I need to compare it line by line and print out which lines are different.
okay... so.... what's the problem?

To clarify: what do you need help with. Do you not know how to read lines from a file? Do you not know how to compare them? What about this involves the "different line lengths" you mentioned in your first post.

Please post what you want from us more clearly.
Last edited on
Topic archived. No new replies allowed.