File: Add openFlag to open existing files