| 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()
|