title: Expected ‘FILE *’ but argument is of type ‘char *’
body: <p>I have a code where i give an argv[1] that eventually will open a file: </p>
  
  <pre><code>int main(int argc, char** argv) {
    read(argv[1]);
  }
  </code></pre>
  
  <p>The thing is that the <code>.h</code>  has the following error, "error expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘char *’"</p>
  
  <p>This is the .h:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  struct node{
    int id;
    int *link_ids;
    int links;
    }; 
  
  struct node *nodes;
  void read(FILE * openedfile); 
  </code></pre>
  
  <p>The thing is that argv[1] is going to be the name of the FILE (txt). Void read is the one that will do everything with the file. Also i  i cant modify in any way main.c
  Can someone help me with my error?</p>