04.01.2015, 16:38
Quote:
Sounds like you have a scope error.
Scope is basically the thing you're coding inside of. Whether that's an IF statement, CASE, a FUNCTION or if it is a GLOBAL/STATIC-access. For example: Код:
new red = 0; if(red == 0) { new blue = 2; } else { blue = 1; // This would throw an error because blue is not defined in the scope of this ELSE container } 1. Move the file handle up so it covers more than one scope (and subsequently covers the working scope)... or 2. Create a new file handle called file and use that handle to pass to the function. |