Returns the number that was written into the file with the given handle, and proceeds to the next position within the file. The file must be open for reading. If there are no further numbers, 0 is returned.
hm... maybe i am misunderstanding something but can't you simply run a loop until file_var_read() returns 0?