readfile

The module contains the following functions (links will take you to individual help files):
dict(file)
Creates a python dictionary, using the first line as a header, which contains the names of each column.
header(file)
Reads the header from a file, defined in the first line or as a list of column names.
table(file)
Reads the data from the file and returns a numpy array.

Usage:

Put the file in your python path. Then, in a python code,

> import readfile

For help, type

> help(readfile)



© Cristóbal Sifón Andalaft
Last Updated May 30, 2011
Home