Name
read_text_file - read text file by columns.
Usage
- data=read_text_file(file_name, ncol = 0)
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
- No
Author / Maintainer
- Zhong Huang
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.