If you have anorexia, you need to keep a diary and note what you are
eating. If you feel you cannot do this honestly, ask a friend to do this
for you. This will tell you what you eat and remind you to eat. You can set up alarms in your phone, laptop etc to eat. You could ask your friend to check on you. Apart from this, you need to undergo constant counseling. You may also need medications so, please consult a doctor specializing in eating disorders.
Take care!