Name

read_text_row - read text file by row, and skip commented rows.

Usage

Input

fnam
text file name, it can be in any format. Records are assumed to be seperated by one or more spaces.
format
the format of input text file. "s" denotes the input text file is a SPIDER document file.
skip
comment marks, like ";" for documentation file in SPIDER format, "C" for fortran code, and so on.

Output

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

Options

Description

  1. Comment line starting with skip will be ignored when the text file is read in.
  2. The function is able to read in non-space-separated records of SPIDER format text files.

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_row (last edited 2013-07-01 13:12:38 by localhost)