Page 1 of 1

Comparing Two Text Files

Posted: Wed Oct 22, 2008 8:46 am
by ikrananka
I have two text files and want to check if they have the same words and punctuation. However, one file contains a lot of line breaks and the other doesn't.

Is there a way to compare the text in these files and ignore the line breaks?

Re: Comparing Two Text Files

Posted: Wed Oct 22, 2008 8:58 am
by psguru
No, files are compared line by line.

Re: Comparing Two Text Files

Posted: Wed Oct 22, 2008 9:04 am
by ikrananka
psguru wrote:No, files are compared line by line.
Oh well - thanks for letting me know. Any plans to add such a feature in future versions?

Re: Comparing Two Text Files

Posted: Wed Oct 22, 2008 9:34 am
by psguru
No immediate plans.

Re: Comparing Two Text Files

Posted: Thu Oct 16, 2014 12:28 am
by robertalexander
Can you please add a printIn on both lines. Just to make sure that they are actually the same. And add basics and else statements to display something like "no match found".

Re: Comparing Two Text Files

Posted: Sun Oct 19, 2014 10:08 am
by psguru
I'm afraid your request is somewhat unclear to me.