<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def do_file(self, filename):
 """ Read and execute a .dql file """

        with open(filename, "r") as infile:
            self._run_cmd(infile.read())