<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def publish_file(self, infile, outfile, styles=''):
 """Render a reST file as HTML. """

        rest = self.read_file(infile)
        return self.publish_string(rest, outfile, styles)