How to separate comma separeted data from csv file?

Posted by Rahul on Stack Overflow See other posts from Stack Overflow or by Rahul
Published on 2010-03-09T10:38:41Z Indexed on 2010/03/09 10:51 UTC
Read the original article Hit count: 249

Filed under:

I have opened a csv file and I want to sort each string which is comma separeted and are in same line:

ex:: file :

name,sal,dept
tom,10000,it

o/p :: each string in string variable

I have a file which is already open, so I can not use "open" API, I have to use "csv.reader" which have to read one line at a time.

© Stack Overflow or respective owner

Related posts about python