hi, im having a few problems implementing a loop into my program that will do exactly what im after. Firstly my loop has to run over 16384 bytes. This is the maximum and minimum it will run for. The problem is I need to create a loop that will break the 16384 bytes down into sections but each section will not always be the same size. For example the first time i run through my loop i mite need to take the first 32 bytes and preform all my processing on those bytes. Then when i go through again i might need to do my processing on the next 96 bytes and so on. Basically I need to process my loop so that it runs through all 16384 bytes but each section i process may differ in size (multiples of 32). Basically im parsing through the directory structure of a FAT image and Long files names are causing the difference in the section size of my loop. Ive been racking my brains on how to do this and I think the loop is going to be the best way but is it possible to create a loop that changes its chunk size depending on what i want (if that makes sense)?