Code that support partitioning a file for partial rating.