On Thu, Oct 16, 2008 at 4:57 PM, cosminx2003 <[EMAIL PROTECTED]> wrote:
> I want to build a file creator.
> Look how it will work : it will create a file file.txt, will rename it
> in .zip|.rar|.iso|etc and then will put a filesize (unlimited
> filesize), but i don't know how to put a specific filesize to a file,
> is it possible? For example "file.txt" has 0 bytes, i want to change
> its filesize to 100 bytes. Is it possible? if yes with what function?

The only way I know would be to write 100 bytes of nothing to the
file.  Something like fwrite($fp, str_repeat("\0", $length)) might
work?

Reply via email to