function tri_surface_io_test02 ( node_file_name, triangle_file_name )

%*****************************************************************************80
%
%% tri_surface_io_test02() tests tri_surface_read().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 September 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'tri_surface_io_test02():\n' );
  fprintf ( 1, '  TRI_SURFACE_READ() reads data from a TRI_SURFACE file.\n' );

  [ dim_num, node_num, order_num, triangle_num ] = tri_surface_size ( ...
    node_file_name, triangle_file_name );

  tri_surface_size_print ( node_file_name, triangle_file_name, dim_num, ...
    node_num, order_num, triangle_num );

  [ node_xyz, triangle_node ] = tri_surface_read ( node_file_name, ...
    triangle_file_name, dim_num, node_num, order_num, triangle_num );

  tri_surface_print ( node_file_name, triangle_file_name, dim_num, node_num, ...
    order_num, triangle_num, node_xyz, triangle_node )

  return
end
