NAME

fp_ow_read_vector - Reads data from an input stream into a Vector

SYNOPSIS

#include "m/m_vec_io.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int fp_ow_read_vector
(
	Vector *vp,
	FILE *fp
);

DESCRIPTION

This routine reads data into a vector from a file specified by a file pointer. The vector must already exist, and the file must already be opened. "fp" points to a file structure associated with the input stream as returned by "kjb_fopen". "vp" is a pointer to a vector. This vector must already exist, and have length "vp->length". The routine attempts to read "vp->length" data elements from the input file. If no elements can be read from the file, the routine returns EOF. If the number of elements read is not equal to the vector length, an error is indicated.

RETURNS

NO_ERROR on success, EOF if no more data elements are in the file, or ERROR on failure.

DOCCUMENTOR

Lindsay Martin

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

read_vector_from_config_file , read_vector , fp_read_vector , fp_read_raw_vector , fp_read_vector_with_header , fp_read_ascii_vector , write_row_vector , fp_write_row_vector , write_indexed_vector , fp_write_indexed_vector , write_col_vector , fp_write_col_vector , write_col_vector_with_header , fp_write_col_vector_with_header , write_raw_vector , fp_write_raw_vector , write_row_vector_full_precision , fp_write_row_vector_full_precision , write_col_vector_full_precision , fp_write_col_vector_full_precision , read_vector_vector_from_config_file , read_vector_vector , fp_read_vector_vector , fp_read_raw_vector_vector , fp_read_formatted_vector_vector , fp_write_vector_vector_with_title , write_vector_vector , fp_write_vector_vector , write_raw_vector_vector , fp_write_raw_vector_vector , fp_write_raw_vector_vector_header , write_vector_vector_full_precision , fp_write_vector_vector_full_precision