Disconnecting the battery will not change the file in the PCM, but it will reset everything that the car had learned. The car learns different things based on how you drive it. It will go back to the defaults and have to relearn everything if you disconnect the battery for long enough.