function n = lvec_header_read ( input_filename ) %*****************************************************************************80 % %% LVEC_HEADER_READ reads the header from an LVEC file. % % Discussion: % % An LVEC is an array of L's. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 03 December 2010 % % Author: % % John Burkardt % % Parameters: % % Input, string INPUT_FILENAME, the name of the input file. % % Output, integer N, the number of points. % n = file_row_count ( input_filename ); if ( n <= 0 ) fprintf ( 1, '\n' ); fprintf ( 1, 'LVEC_HEADER_READ - Fatal error!\n' ); fprintf ( 1, ' There was some kind of I/O problem while trying\n' ); fprintf ( 1, ' to count the number of data rows in\n' ); fprintf ( 1, ' the file %s\n', input_filename ); end return end