improve WriteASCIIFile.m