I was driving my car which isn't running well as it is, it chugs and doesn't like to run when I first start it. The check engine light came on one time while it was chugging and it wouldn't let me dive at all. I pulled over turned the car off, and started it back up. The check engine light was not on anymore. I and thinking it isn't getting enough gas. How do I check the engine codes in the car? Please help me if you have any ideas.