title: skip value in for loop if it = 0 c#
body: <p>how to skip writing the value to the file if it = 0 in my calculator program </p>
  
  <p>Procedure that writes the array into a file</p>
  
  <pre><code> public void SaveArrayToFile()
  
          {
              int count;
              var writer = new System.IO.StreamWriter("C:/calc/calculations.txt",false);
              for (count = 0; count &lt;= Results.Length -1 ; count++)
              {
                  if (Results[count] == 0)
                  {
                      // problem
                  }
                  writer.Write(Results[count]);
                  writer.WriteLine();
              }
              writer.Dispose();
  </code></pre>
  
  <p>Any help would be valued </p>