Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10973

Re: comparing two test files

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Fri, 23 Dec 2011 08:37:33 -0600
Date Fri, 23 Dec 2011 06:37:25 -0800
From Patricia Shanahan <pats@acm.org>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: comparing two test files
References <5fdf65a2-052b-4c0b-b6bf-bc4dc8a7dd02@v24g2000prn.googlegroups.com> <debugging-20111223121356@ram.dialup.fu-berlin.de>
In-Reply-To <debugging-20111223121356@ram.dialup.fu-berlin.de>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <1IGdnbzxbYSzD2nTnZ2dnUVZ_rednZ2d@earthlink.com> (permalink)
Lines 18
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 75.11.53.36
X-Trace sv3-CXHb//LA9dDCTUQLa7Xv2HPt8tG/Ot4ZOiz0+cWK3PbT/GpWo6LH9zWb+Nzj6nf2mi725MKao7O6t8S!X+hM/NIsNSn0ovTE2+0dVVszgMSOdC5z7ntzBZQWTSdz/EjoBUr3PCoq8LGMH9LjGmGQUnM7zUL1!vJecRZ6ULo1S1UdkJnzxPLMiEtFEFcoEnJ47OJY/r4M=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1985
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10973

Show key headers only | View raw


On 12/23/2011 3:15 AM, Stefan Ram wrote:
> ruds<rudranee@gmail.com>  writes:
>> I want to compare the content of two files, which in turn gives me the
>> output which lines are deleted from latest version and which lines are
>> added in it and also if the first line no is same is details changed.
> (...)
>> it iterates through the first file but doest not enter the second
>> while loop after reading once onle i.e for the first line of first
>> file.
>
>    Learn the craft of debugging: You need to inspect the values
>    of loop-critical expressions at run time and then
>    understand, why they have these values.

I've written a web page on the subject of how to debug,
http://www.patriciashanahan.com/debug

Patricia

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

comparing two test files ruds <rudranee@gmail.com> - 2011-12-23 00:45 -0800
  Re: comparing two test files Jeff Higgins <jeff@invalid.invalid> - 2011-12-23 05:27 -0500
    Re: comparing two test files Jeff Higgins <jeff@invalid.invalid> - 2011-12-23 06:03 -0500
  Re: comparing two test files Patricia Shanahan <pats@acm.org> - 2011-12-23 06:37 -0800
    Re: comparing two test files Gene Wirchenko <genew@ocis.net> - 2011-12-23 09:18 -0800
      Re: comparing two test files Patricia Shanahan <pats@acm.org> - 2011-12-23 10:25 -0800
        Re: comparing two test files Gene Wirchenko <genew@ocis.net> - 2011-12-23 11:13 -0800
          Re: comparing two test files Patricia Shanahan <pats@acm.org> - 2011-12-23 11:45 -0800
  Re: comparing two test files markspace <-@.> - 2011-12-23 07:50 -0800

csiph-web