reading a line from a file and splitting it - python
<p>I have a file with just 1 line of data ( close to 3 MB ) I need to split it into smaller lines and write the output to a new file.</p>

<p>for eg :</p>

<blockquote>
  <p>sample.txt - file
  434D012000100009362D00000000069E0F0007000000DA434D01030010010003008000000000000000000000009C434D01200010000
  .... and so on</p>
</blockquote>

<p>I want to split the whole line into smaller lines each of 23 bytes each.
ie how do i get to write a python script to tell break after so many characters</p>

<p>Thanks.</p>
