title: Getting an error "fopen': This function or variable may be unsafe." when compling
body: <p>I'm receiving this error when compiling:</p>
  
  <pre class="lang-none prettyprint-override"><code>'fopen': This function or variable may be unsafe. 
  Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
  </code></pre>
  
  <p>I'm new to C++ and open CV, therefore please help me to get rid of this error. </p>
  
  <p>Thanks</p>
  
  <pre><code>void _setDestination(const char* name)
  {
      if (name==NULL) {
          stream = stdout;
      }
      else {
          stream = fopen(name,"w");
          if (stream == NULL) {
              stream = stdout;
          }
      }
  }
  </code></pre>