Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. fin = open(rawFile,"r")
  2. fout = open(filFile,"w")
  3.  
  4. rawData = fin.read()
  5.  
  6. splitData = rawData.splitlines(True)
  7.  
  8. fout.write(splitData[0])
  9.  
  10. for it in range(1,len(splitData)):
  11.     line = splitData[it]
  12.     vals = line.split()
  13.     print(line)
  14.     if float(vals[0]) >= start and float(vals[0]) <= stop:
  15.         fout.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement