How many times do you try to open the file? Why would you try to open the file three times?