So I have some data coming from file, for example integers. And assuming that I we don\'t know the length of data coming from a file or other resource. How do we set the cap