In reply to dave_59:
If the variables names are fixed and you just need to read the data. then you can use $fscanf to read the data into intermediate variables and cast them to the actual needed variables.
Could you please provide an example how to do this? Thank you