I globally declared a file. Then in my main I opened the file, then called a function to write, and then closed the file in my main again. When I am in my function, do I need to send it the file, or does it recognize that its open and ready to write to from my main?