Use with statement when opening files