WASHINGTON (AP) -- John Edwards says he's ashamed of his conduct.
He say he made a serious error in judgment when he had an affair for a short time in 2006.
In a statement late today, the former Democratic presidential candidate also says he informed his wife about his affair with 42-year-old Rielle Hunter and has asked her forgiveness.
Edwards says he is not the father of Hunter's daughter. He says he's willing to take a test to determine the five-month-old baby's paternity.
Until today, Edwards had denied reports in the National Enquirer that he had an affair while his wife, Elizabeth, was battling cancer.
He admitted to the affair in an interview set to air on ABC News' "Nightline," and then released a statement.