Create text-editor.c

simple text editor