title: How can I make a function call with filepath?
body: <p>I just want to call a function with filepath which is "/home/merve/merve.txt":</p>
  
  <pre><code>void GenerateUnecryptedData(const char* pathToUnencryptedFile)
  {
        // File structure:
        int offset=0;
        ofstream myfile;
        myfile.open ("pathToUnencryptedFile", ios::out | ios::app | ios::binary);
  
        // + 20 bytes of arbitrarily chosen data (offset: 0)
        myfile.seekp(offset) &lt;&lt; CD ;
        // + IV (Initialization Vector) 16 bytes (offset: 20)
        offset=20;
        myfile.seekp(offset) &lt;&lt; IV;
        offset=36;
        // + 48 bytes of Plain Text(offset: 36)
        //- PLAINTEXT = ENCRYPTEDBurada herhangi birsey yaziyor olabilir
        myfile.seekp(offset) &lt;&lt; PLAINTEXT ;
  
  }
  </code></pre>
  
  <p>So how can I call my function?</p>
  
  <p>By the way, I'm not so sure my code will work? I'm going to try after my function call.</p>
  
  <p>I'm just a beginner so please make it simpler for me!</p>