From: Timothy Hunter Date: 2007-03-26T06:49:21+09:00 Subject: Re: Read only a few bytes from file toulax@gmail.com wrote: > This works, however it still reads the entire page but only displays > the certain amount of bytes. Is it possible to only load the amount of > bytes that I specify? > > Say for instance that I have a 10mb file, how do I get the first few > bytes of this file without having to read it entirely first? > Specify the number of bytes you want to the read method. Because of buffering read may actually read more bytes than you want, but it won't be all 10mb.