function [] = readValueFromFile( statsFileID, metricFileName, metricName )

FileID = fopen( metricFileName );

if( FileID <= 0 ) %does the file exist?
    % if not
   message = ['WARNING: MISSING ' metricName ' FILE'];
   disp( message );
   fprintf( statsFileID, '\t \s missing', metricName );
else
    value = fscanf( FileID, '%f', inf );  
    fprintf( statsFileID, '\t %f ', value );
    fclose( FileID );
end