File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes problem while comparing phone numbers inside two different files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "problem while comparing phone numbers inside two different files" Watch "problem while comparing phone numbers inside two different files" New topic
Author

problem while comparing phone numbers inside two different files

fioana elegant
Greenhorn

Joined: Oct 06, 2010
Posts: 16

where base is file having all numbers and dnd file have numbers to be excluded
i am not able to understand how this program is comparing numbers and whether all numbers in dnd file are compared or not.
only first number is checked in dnd file instead of all new line separated numbers.
can someone help in finding bug???
Kurtcebe Eroglu
Ranch Hand

Joined: Jan 30, 2007
Posts: 30
Haven't gone through it all but you seem to be missing curly braces for while loop so only the first if statement that follows is looped.

You may also try to use your debugger to step in the code to see what's the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while comparing phone numbers inside two different files
 
Similar Threads
read lines after exception
Error printing out from a read in file.
i need to skip lines after exception
array question?
read and write from txt file