Trouble opening file in root macro

Hi,

I’m getting the this error when I try to open a file in a macro:

SysError in TFile::TFile: file board0.root can not be opened (Permission denied)

using this statement

TFile *f = new TFile("board0.root","RECREATE");
Does anyone know what the problem is?

Thanks,
Bob[/code]

You are running ROOT in a directory where you do not have write access

Rene