SyntaxFix
Write A Post
Hire A Developer
Questions
Switch the order of the functions or do a forward declaration of the writefiles function and it will work I think.