title: how to add New Line while writing byte array to file
body: <p>Hi I am reading a audio file into a byte array. then i want to read every 4 bytes of data from that byte array and write it into another file. </p>
  
  <p>I am able to do this but, my problem is i want to add new line aft every 4 byte of data is written to file. how to do that??
  Here is my code...</p>
  
  <pre><code>FileStream f = new FileStream(@"c:\temp\MyTest.acc");
  for (i = 0; i &lt; f.Length; i += 4)
  {
      byte[] b = new byte[4];
      int bytesRead = f.Read(b, 0, b.Length);
  
      if (bytesRead &lt; 4)
      {
          byte[] b2 = new byte[bytesRead];
          Array.Copy(b, b2, bytesRead);
          arrays.Add(b2);
      }
      else if (bytesRead &gt; 0)
          arrays.Add(b);
  
      fs.Write(b, 0, b.Length);
  }
  </code></pre>
  
  <p>Any suggestions please.</p>