In that case, $sizeRead will be smaller than $size. Possibly zero if your file is exactly a multiple of the chunk size. You then write the chunk as normal (unless its size zero), and the while loop exits.
In reply to Re^5: Chunking very large files
by SuicideJunkie
in thread Chunking very large files
by hiptoss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |