Restart the computer. When it starts, do not close the Text Edit window. In the dock, click and hold on the Text Edit icon. When a menu appears, on it you should see an option that says "Open at Login". If it has a check mark to the left, click on it. If it does not have a check, ignore it.