Added $mode parameter to fopen call on docs.
Merge pull request #262 from AidanThreadgold/working

Added $mode parameter to fopen call on docs.