Using context manager for file