ついでに書くと、>443のケースはfputs(g_mapdata[y], pFile); fputc('\n', pFile);で済むな。
つーか、fprintf(pFile, "%s\n", g_mapdata[y]);と書くのが一番自然だろ。JK