Paginating files to chunks of user defined sizes