Comparing values in 2 textfiles and returning the missing values
From: Jorgen Gustafsson (jorgen.xi.gustafsson_at_ericsson.com)
Date: 12/11/03
- Next message: Alex Zeng: "Re: Read one character of input?"
- Previous message: Almir: "Perl Net::SMTP How do i have the subject of an email show"
- Next in thread: Jim Gibson: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Jim Gibson: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Jürgen Exner: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Eric J. Roode: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Jorgen Gustafsson: "Re: Comparing values in 2 textfiles and returning the missing values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 11 Dec 2003 16:58:04 +0100
Hi,
im trying to write a small progam to compare data in 2 textfiles.
I want to search for values that doesnt exist in File2.
The result should be "3" in the example below but Im not
able to do this since my program crosschecks all numbers in
both files and Im getting a lot of "hits". (outer and inner while-loops)
Below is an examples of the textfiles:
File1.txt File2.txt
1 1
2 2
3 4
4 5
5 6
7
8
9
10
Thanks in advance...!
Jorgen
- Next message: Alex Zeng: "Re: Read one character of input?"
- Previous message: Almir: "Perl Net::SMTP How do i have the subject of an email show"
- Next in thread: Jim Gibson: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Jim Gibson: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Jürgen Exner: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Eric J. Roode: "Re: Comparing values in 2 textfiles and returning the missing values"
- Reply: Jorgen Gustafsson: "Re: Comparing values in 2 textfiles and returning the missing values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]