NTRT Simulator
v1.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Pages
printParams.py
1
""" Prints all but the first two comma-separated values on every line """
2
""" Input must be comma separated, output will be comma separated """
3
4
import
sys
5
6
try
:
7
f = open(sys.argv[1],
'
r')
8
for
line
in
f:
9
for
i
in
range(2, len(line.split(
','
))):
10
if
(i < len(line.split(
','
))-1):
11
sys.stdout.write(line.split(
','
)[i] +
","
)
12
else
:
13
sys.stdout.write(line.split(
','
)[i])
14
finally
:
15
f.close()
16
dev
steve
Escape_T6
logs
printParams.py
Generated on Fri Jan 9 2015 15:38:48 for NTRT Simulator by
1.8.7