You have a semicolon (;) missing on the end of line 11.
In reply to Re^5: Failed to open file for write by BrowserUk in thread Failed to open file for write by wrkrbeee