View Single Post
  #1 (permalink)  
Old 04-02-2009, 5:28 AM
meloco meloco is offline
VB.NET Forum Newbie
.NET Framework: .NET 1.1 (VS 2003)
 
Join Date: Mar 2009
Age: 22
Posts: 4
Reputation: 0
meloco is on a distinguished programming path ahead
Default compare between 2 txt files and save it in new txt

Hi there,

I have many txt files, and i have to select any txt file to search and compare match fields with file: CompareText.txt. My text file format:


20090227#2#B010110100#3787.562904#
20090227#2#B010110200#430556.987989#
20090227#2#B010110213#2146515.91#
20090227#2#B010110211#14073.69#
......


CompareText.txt

B010110200
B010110400
B010110413
B010110411
B010110213

, I can get the same result
(depend on the third column to compare), then i must save this result to new txt file . Examples, this result from 2 txt files:

20090227#2#B010110200#430556.987989#
20090227#2#B010110213#2146515.91#

Does anyone have code for this?? Thanks in advance
Best Regards
Reply With Quote