Name

read_text_file - read text file by columns.

Usage

Input

file_name
text file name, it can be in any format. Records are assumed to be seperated by one or more spaces.
ncol

if ncol = -1, read all columns; if ncol >= 0, just read the (ncol+1)-th column.

Output

data
data, read in text file, NxM elemets, N is the row index, M is the column index.

Options

Author / Maintainer

Keywords

category 1
UTILITIES

Files

utilities.py

See also

References to relevant other routines.

Maturity

stable
works for most people, has been tested; test cases/examples available.

Bugs

None. It is perfect.

read_text_file (last edited 2013-07-01 13:13:03 by localhost)