Annaiidziithaa, Line 75 is where its trying to write to the main index.html file.
Make sure you have set %dir correctly on line 11 and that the directory exists!
I hope this helps!
Thanks,
FragUK:
I've been delayed with the script currently due to other pressing projects but I HOPE to have it done sometime this month.