ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Active_prgs/batesCompare.py
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/x-python
File size: 574 byte(s)
Log Message:
Initial Import

File Contents

# Content
1 #batesCompare.py
2
3 #file1 = open(r"U:\CSX\OCR\CSX_error_check_4-28-06.txt").readlines()
4 #file2 = open(r"U:\CSX\OCR\OCR_exists.txt").readlines()
5
6 file1 = open(r"C:\test_dir\Compare\VONA001.txt").readlines()
7 file2 = open(r"C:\test_dir\Compare\Verizon_export.txt").readlines()
8
9 output = r"C:\test_dir\Compare\diffs.txt"
10 count = 0
11 print count
12 for x in file1:
13 count = count + 1
14 if count >10000:
15 print count
16 count = 0
17 if x in file2:
18 pass
19 else:
20 test = open(output,'a')
21 test.write(x)
22 test.close()