Well for now you can just do MCfiletype = MCStringGetCString(MCstackfiletype), as MCfiletype will be replaced by what it was originally after the appropriate file creation calls have been made.