a problem about the output function

there is a problem about the mtest.c. i want to output the partition information to a file, using the function WritePVector(),but the output file is null.

WritePVector(argv[2], &vtxdist, &part, comm);