title: characters limit per line in outputfile
body: <p>So my goal here is trying to limit characters in the outputfile to 6 characters per line.
  Here is what i have so far but this doesn't work: One of the error that i got is can't concatenate str and int</p>
  
  <pre><code>def charLimit(outputfile):
  
          limit =6
          char = 0
          with open(outputFile,'r+') as file:
             for char in char.len():
                 if char != 6 :
                    char = file.read(char)
                    char += 1
                else:
                    file.write('\n')
                    char = 0
  </code></pre>