Afifov wrote:
How can I split a file into several files each with a fixed size?
All the same size? If the file size is composite, this is quite easy. If,
however, the file size is prime, the task is rather more difficult, as it
will involve splitting the byte into subytomic particles. Doable, but
requires a lot of energy.
If you are prepared for the various output files to be of various sizes,
this becomes trivial. You will need:
fopen, fread (or getc), fwrite (or putc), fclose
Curiously, if you know the largest file size you are willing to /write/,
then you almost certainly don't need to know the file size in advance.
Try writing the program. You'll probably be amazed at how simple it is. But
if you get stuck, show us your best shot.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
mail: rjh at above domain