Hans Vlems <> writes:
> I was asked for a program that creates a file with a predermined
> filesize.
> Filesize is specifcied in bytes, but it is acceptable if the filesize
> ought to be a multiple of, say, the blocksize of the disk.
> On a VMS system creat has a few platform specific enhancements. But
> this needs to run on a WIndows XP system. Is there a function to do
> that, for either Visual C or the djgpp environment?
Create the file, then write the specified number of bytes to it.
Or did you have something else in mind?
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"