Re: Compare two different files.

2007-08-09 Thread Jay Savage
On 8/9/07, Jason <[EMAIL PROTECTED]> wrote: > I think I didn't post my question properly. > The text file will be having different field values with alon with > some headers. > A java program will parse the file and create a java object with the > same field values and headers, but the position and

Re: Compare two different files.

2007-08-09 Thread Jason
I think I didn't post my question properly. The text file will be having different field values with alon with some headers. A java program will parse the file and create a java object with the same field values and headers, but the position and format may change. Now I want to check if the java p

Re: Compare two different files.

2007-08-09 Thread Chas Owens
On 8/9/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > Jeff Pang wrote: > > I don't think they can be compared if one is txt type and another isn't. > > Or you can use unix 'diff' command on them but you would get errors. > > The UNIX command `cmp` is used to compare binary files. `diff` is fo

Re: Compare two different files.

2007-08-09 Thread Mr. Shawn H. Corey
Jeff Pang wrote: I don't think they can be compared if one is txt type and another isn't. Or you can use unix 'diff' command on them but you would get errors. The UNIX command `cmp` is used to compare binary files. `diff` is for text files. -- Just my 0.0002 million dollars worth, Shaw

Re: Compare two different files.

2007-08-08 Thread Jeff Pang
-Original Message- >From: Jason <[EMAIL PROTECTED]> >Sent: Aug 8, 2007 6:59 PM >To: beginners@perl.org >Subject: Compare two different files. > >HI, > >Can I compare the contents of two different files using perl? >ex: one .txt and other javaobject >

Compare two different files.

2007-08-08 Thread Jason
HI, Can I compare the contents of two different files using perl? ex: one .txt and other javaobject -Jason -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/