title: How can I use variables in system() functions? (Obj-C)
body: <p>I've been looking for this answer everywhere and I can't seem to find it. Does anyone know how to use variables in system() functions in Objective-C?
  Basically. I would like a system function in Objective-C to contain pre-set information with user input at the end.</p>
  
  <p>I have tried <code>system(&amp;"text"[variable]);</code></p>
  
  <p>I also tried <code>int command = "text"[variable];</code> then <code>system(command);</code> but I get <code>incompatible integer to pointer conversion passing 'int' to parameter if type 'const char *'</code>.</p>