User Tools

Site Tools


compare

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
compare [2018/05/06 20:13]
zeppo
compare [2018/05/06 20:14]
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()
-  +
- f.close() ​              +
- ​f2.close()+
  
  ​print(cnt, ​ " ​  new transactions"​)  ​print(cnt, ​ " ​  new transactions"​)
compare.txt · Last modified: 2018/05/06 20:14 by zeppo