skidracer #1 From a quick glance there is no matching CloseFile to go with:file=WriteFile("config.txt") which will cause unpredictable results.