Resolving 9969 resubmitting to fix rebase issue.
Removing unnecessary switch statements in fopen methods.
Merge branch 'fix-9969-take-two' of https://github.com/th3fallen/core into fix-9969-take-two
Merge pull request #10083 from th3fallen/fix-9969-take-two

Fix 9969