support write text file