fix: `fs.truncate` is not working in node 0.10.24 any more. Changed to `fs.writeFile`.
fix: `fs.truncate` is not working in node 0.10.24 any more. Changed to `fs.writeFile`.

Signed-off-by: liuyanghejerry <b0f1940d4cb9978b550cd1a60612dc2e954a1ee2@126.com>

liuyanghejerry/painttyServer