function [value] = readManyValuesFromFile( statsFileID, metricFileName, metricName, numberOfValuesPerFrame )

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 );
    value = buffer( value, numberOfValuesPerFrame + 1 );     % numberOfValuesPerFrame data  values and one frame number
    value = value( 2 : numberOfValuesPerFrame+1, : )'; % remove the frame numbers
    fclose( FileID );
end