Get parameters from pol1

Hi,
I’ve a problem.
I’m working with this code:

#################################################
#include
void coefficienteAng()
{
ifstream file(“punti”);
double x, y;
TGraph *plot = new TGraph();
int ipoint(0);
while (!file.eof()) {
file >> x;
if (file.eof())
break;
file >> y;
plot->SetPoint(ipoint,x,y);
ipoint++;
}
file.close();
TF1 *f3 = new TF1(“f3”, “pol1”);
plot->SetMarkerStyle(20);
plot->SetMarkerSize(1);
plot->GetXaxis()->SetTitle(“Log(#mu)”);
plot->GetYaxis()->SetTitle(“Log(N(#mu))”);
gStyle->SetOptFit (11) ;
plot->Draw(“AP”);
f3->Draw(“same”);
plot->Fit(f3);

return;
}
##################################################

How can I get the values p0 and p1 of the Fit (“pol1”) and save them in a txt file?
Is there a function to get the values p0 and p1?

Thanks,
Gianpaolo

f3->GetParameter(0)
f3->GetParameter(“p0”)

plot->GetFunction(“f3”)->GetParameter(0)
plot->GetFunction(“f3”)->GetParameter(“p0”)

Excellent!!!
Thank you very much.