- #1
JesseC
- 251
- 2
Is there one?
Or do I really have to write something like this:
Or do I really have to write something like this:
Code:
from numpy import *
with open('file.txt','r') as f:
#read only data, ignore headers
lines = f.readlines()[31:]
# convert strings to floats and put into arrays
for i in xrange(len(lines)):
s = lines[i].split()
y1[i] = float(s[0])
y2[i] = float(s[1])
y3[i] = float(s[2])