Avoid crash due to zero-length writes in MPI_File_write_ordered. Write a space instead of empty string. The space will be at the end of a line and cause no problem.