title: How to get a string to split into chunks of five?
body: <p>So the program would read a file with a string. That string would then be saved to another file but the string would be split into groups of 5.</p>
  
  <p>Example.</p>
  
  <p>Given that the content of <code>file1.txt</code> will be <code>thecatsatonthemat</code>, the content of <code>file2.txt</code> would then be <code>theca tsato nthem at</code>.</p>