Different ways to open a file