What would be a way to write and read data from a file that is also burst compliable?
I wouldn’t recommend trying to do file IO with Burst. Instead I would recommend reading/writing the data using managed code and if you need to, you can pass the data to Bursted code as a step before/after the IO.
1 Like
We do a lot of reading from file at least as part of loading using burst. Our main approach has been to use memory mapped IO. That’s easy for reading from files, but a bit more annoying when writing as it requires a bit more thought to grow the memory map on demand. Last time I did it was for a prototype internal tool, and in that situation I just allocated a memory map I knew would be large enough to fit, and then truncated the file afterwards.
1 Like