Create chatwrite.c