function str = players(h, outfile)
%PLAYERS sample display of softball statistics file.
%   STR = PLAYERS(H, OUTFILE) opens text file players.txt
%   and puts the contents into HTML output string STR and
%   into file OUTFILE.
%   STR = PLAYERS(H) performs the same functions but does not
%   put the output into OUTFILE.
%

%   Author(s): M. Greenstein, 04-01-98
%   Copyright (c) 1998 by The MathWorks, Inc.
%   $Revision: 1.3 $   $Date: 1998/06/05 20:04:54 $

%%% Modified by Dinh-Yen Tran 1999/10/12

% Set working directory.
% cd(h.mldir);

% Put data into MATLAB structure x.
x.date = date;
% players.txt is stored in tmp so that it's world-readable 
x.players = ...
wstextread('/afs/athena/course/6/6.555/matweb/tmp/players.txt');

% Put the data into the HTML document for output.
templatefile = '/afs/athena/course/6/6.555/matweb/dev/players2.html';
if (exist('outfile', 'var') == 1)
   str = htmlrep(x, templatefile, outfile);
else
   str = htmlrep(x, templatefile);
end









