Hello, Im setting up a file which has the length of a buffer in 4 bytes followed by the buffer 0003...0002..0004.... and so on just that the numbers are a lot bigger up to 9999 but thats just an example. I've been using fgets and fseek to first read the 4 bytes do an atoi then get the buffer then the next length but it seems a little unwieldy. Is there a better way? Is it recommended to read the entire file and put it in memory to work off of it there? How could that be accomplished? Thanks for any help.