Open file in a more elegant manner.