<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def writeln(self, data):
 """ Write a line of text to the file :param data: The text to write """

        self.f.write(" "*self.indent_level)
        self.f.write(data + "\n")