JK: Added requried parameter to openFileOutput call.