I want to know is it possible to generate .raw file format using C++. If yes then which class deals with it? If possible kindly put down a sample code.
I have data of the format (X Y Z) <Number> which represents the number of particles between (X Y Z) and (X+1 Y+1 Z+1). I need to represent this data graphically using ParaView and hence need my data in binary format. So would like to know is it possible to directly generate .raw file format?
Generally, to write binary data to a file in C++, you will want to use an
ofstream:It is up to you to determine the actual format (like the
Datastructure in the example above) that this application uses, and then write it to a file.