withFile package:foundation

withFile filepath mode act opens a file using the mode and run act. the by-product handle will be closed when act finish, either normally or through an exception. The value returned is the result of act@