I know MPI IO writes to files in binary format, however this time I need it to be in ASCII. I need this because I am using the Netpbm for images, and the header must be ASCII (so the program can read P1, P2, P3, P4, P5 or P6 and determine if the content of the image is in ASCII or binary among other things).
The code I am using is the one provided in (simple example) MPI parallel io writing garbage and I wonder if there is a small moification in the code that allows me to output the content of the integer buffer in ASCII instead of binary.
Additionally, having a way to output this in ASCII will also allow for easier debugging.