title: How do i run a system() command using arduino sketch program?
body: <p>So, here is the thing. I have written an arduino sketch program and this is what i want say if the LED blinks then say the following code is executed such as 
  system("c:\temp\capture.txt") something like that. Is there a way to do that?</p>
  
  <pre><code>void loop()
  {
     val = digitalRead(2);
  if(val == HIGH)
  {
      digitalWrite(LED,HIGH)
    //system command happens here
  }
  }
  </code></pre>
  
  <p>How do i do that? Thanks</p>