File API and Log functionality