Partitioning files