function table_io_test04 ( )

%*****************************************************************************80
%
%% table_io_test04() tests i4mat_header_read(), i4mat_data_read().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 May 2005
%
%  Author:
%
%    John Burkardt
%
  input_filename = 'i4mat_05_00020.txt';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'table_io_test04():\n' );
  fprintf ( 1, '  i4mat_header_read() reads I4MAT header information\n' );
  fprintf ( 1, '  (about the dimensions of the data);\n' );
  fprintf ( 1, '  i4mat_data_read() reads the data.\n' );

  [ n, d ] = i4mat_header_read (  input_filename );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Read the header of %s\n', input_filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Spatial dimension D = %d\n', d );
  fprintf ( 1, '  Number of points N  = %d\n', n );

  table = i4mat_data_read (  input_filename, n, d );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Read the data in %s\n', input_filename );

  i4mat_print_some ( n, d, table, 1, 1, 5, 5, ...
    '  5x5 portion of data read from file:' );

  return
end
