NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
printDistances.py
1 """ Prints the first comma-separated value on every line """
2 
3 import sys
4 
5 try:
6  f = open(sys.argv[1], 'r')
7  for line in f:
8  print line.partition(',')[0] # Implicit '\n' printed as well
9 finally:
10  f.close()
11