Thanks for your reply, and please pardon this very long clarification, but I wanted to be, well, clearer.
I know about that, but that method doesn't help in many situations (including the one I described, as I didn't have any clue what the sizes might be ahead of time... I could only know...