Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-13 Thread Piet van Oostrum
> Emile van Sebille (EvS) wrote: >EvS> On 6/11/2009 12:09 AM higer said... >>> Tool can certainly be used to compare two files,but I just want to >>> compare them using Python code. >>> >EvS> difflib? If I understand correctly the OP just wanted to know whether two files were equal, not wh

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-12 Thread Emile van Sebille
On 6/11/2009 12:09 AM higer said... Tool can certainly be used to compare two files,but I just want to compare them using Python code. difflib? Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-12 Thread Piet van Oostrum
> higer (h) wrote: >h> On Jun 11, 11:44 am, Chris Rebert wrote: >>> On Wed, Jun 10, 2009 at 8:11 PM, higer wrote: >>> > I just want to compare two files,one from windows and the other from >>> > unix. But I do not want to compare them through reading them line by >>> > line. Then I found the

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-11 Thread higer
On Jun 11, 11:44 am, Chris Rebert wrote: > On Wed, Jun 10, 2009 at 8:11 PM, higer wrote: > > I just want to compare two files,one from windows and the other from > > unix. But I do not want to compare them through reading them line by > > line. Then I found there is a filecmp module which is used

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-11 Thread higer
On Jun 11, 1:08 pm, John Machin wrote: > Chris Rebert rebertia.com> writes: > > > > > > > On Wed, Jun 10, 2009 at 8:11 PM, higer gmail.com> wrote: > > > I just want to compare two files,one from windows and the other from > > > unix. But I do not want to compare them through reading them line by

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-10 Thread John Machin
Chris Rebert rebertia.com> writes: > > On Wed, Jun 10, 2009 at 8:11 PM, higer gmail.com> wrote: > > I just want to compare two files,one from windows and the other from > > unix. But I do not want to compare them through reading them line by > > line. Then I found there is a filecmp module which

Re: How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-10 Thread Chris Rebert
On Wed, Jun 10, 2009 at 8:11 PM, higer wrote: > I just want to compare two files,one from windows and the other from > unix. But I do not want to compare them through reading them line by > line. Then I found there is a filecmp module which is used as file and > directory comparisons. However,when

How should I compare two txt files separately coming from windows/dos and linux/unix

2009-06-10 Thread higer
I just want to compare two files,one from windows and the other from unix. But I do not want to compare them through reading them line by line. Then I found there is a filecmp module which is used as file and directory comparisons. However,when I use two same files (one from unix,one from windows,t