Cg Render to Image File

Hello,
Forgive my noob question, I am quite new to programming graphics applications and this might be out of my league, but how would I render to an image file while using Cg? Is there a function that allows me to read from the frame buffer object? I am lost in the thousand-page manual.
Any assistance would be greatly appreciated.