use "with" open file