oh I reverse engineered the file format for Ansys LightTools *.ray files earlier, used for providing info on directional emissions for LEDs (most big vendors publish these files now).
they format is pretty trivial, and this post is to remind me to write it up properly tomorrow when I wake up, but the TL;DR is there's a header with a 4-byte magic number followed by some uint32 values, then a series of rays described by 7 floats (pos x,y,z then ray vector x,y,z then flux magnitude)