Thread: File importing

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Rep Power

    File importing

    I am importing data produced from an external code. The data is organized into columns. I would like to be able to assign each column to a variable or array. How would you recommend doing this? I have been looking into the pickle function, as well as "f.readline" and "for line in f:" and I got all of those ideas from the Python Tutorial. I am a little new to python.
  2. #2
  3. Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Aug 2011
    Rep Power
    post 7 of this thread shows an example about as clearly as I can write.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo