the directory where the files will be written
the size of each file in bytes
generate the name of each file from its index