updating 'opened' variable properly in BestEffortLongFile