This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
compare [2018/05/06 20:13] zeppo |
compare [2018/05/06 20:14] (current) zeppo |
||
---|---|---|---|
Line 4: | Line 4: | ||
lines = f.read() | lines = f.read() | ||
f.close() | f.close() | ||
- | |||
f2 = open("C:\\temp\\new.csv", "r") | f2 = open("C:\\temp\\new.csv", "r") | ||
cnt = 0 | cnt = 0 | ||
Line 13: | Line 12: | ||
print(var) | print(var) | ||
f.write(var) | f.write(var) | ||
- | + | f.close() | |
- | + | f2.close() | |
- | + | print(cnt, " new transactions") | |
- | f.close() | + | |
- | f2.close() | + | |
- | + | ||
- | print(cnt, " new transactions") | + |