<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close_all_but_this(self):

 """Close all files but the current one"""

        self.close_all_right()
        for i in range(0, self.get_stack_count()-1  ):
            self.close_file(0)