Idles fine then wants to die driving

Did you replace the fuel filter?
Not yet I have to get one, I am going to drop the tank to see how bad it looks inside. I have a feeling that it is rusty and may need a good cleaning/replacement as well.