i have a further question on another segment of my code.
i now have a binary file that has 3 rasters arranged via BSQ. i know how many pixels each raster has, and also know that each value is floating point. what i have to do is extract all of them, and separate them into their respective band, and then work with each value individually. i was thinking of using fgets to read in each line, n then separating them into individual numbers when i hit a blank space, but i realise i cannot do that as i do not know the length of each line in the binary file.