So I\'m very green with Python and am trying to learn by replicating some matlab code I\'ve written. I have a part where, in matlab, I load a data file that\'s tab-delimited
There is a csv module in the standard library.
See the documentation here
>>> import csv >>> spamReader = csv.reader(open('eggs.csv', 'rb'), delimiter=' ', quotechar='|') >>> for row in spamReader: ... print ', '.join(row) Spam, Spam, Spam, Spam, Spam, Baked Beans Spam, Lovely Spam, Wonderful Spam