c++: fail if cannot open ART file