title: Reading file string into an array (In a pythonic way)
body: <p>I'm reading lines from a file to then work with them. Each line is composed solely by float numbers.</p>
  
  <p>I have pretty much everything sorted up to convert the lines into arrays.</p>
  
  <p>I basically do (pseudopython code)</p>
  
  <pre><code> line=file.readlines()
   line=line.split(' ') # Or whatever separator
   array=np.array(line)
   #And then iterate over every value casting them as floats
        newarray[i]=array.float(array[i])
  </code></pre>
  
  <p>This works, buts seems a bit counterintuitive and antipythonic, I wanted to know if there is a better way to handle the inputs from a file to have at the end an array full of floats.</p>