The two "propertiesArray" variables are declared inside a block (a compound statement surrounded by {} ), and they are not available outside of that block; each block has its own scope just like each function has its own scope. Variables declared inside a scope are not usually available outside that scope.
The fix in your case is to declare "propertiesArray" once, before the if statement. Then you can set it later.
PS - don't release fileString. You did not alloc, copy, retain, or "new" it, so you should not release it here.
__________________

Free Games!
|