title: Read integers into linked list
body: <p>this is for a project for class. (C language) </p>
  
  <p>I am having trouble with the <code>first function</code> that I'll need to implement. It's a load function where I take an input filename, open up a file given by user at runtime, and read it into a linked list format from a file with an integer on each line. </p>
  
  <p>I am stuck with <code>how to create the linked list</code> so that they are all actually linked, without the <code>same node in the list being overwritten each time</code>. </p>
  
  <p>This is what I have so far, which I know is incorrect. </p>
  
  <pre><code>#include"sortingheaders.h"
  #include &lt;stdio.h&gt;
  #include&lt;stdlib.h&gt;
  #include&lt;time.h&gt;
  
  ///////////////////////////////
  Node* List_Create(Node * ln)
  {
    if(ln==NULL)
      { 
     ln = malloc(sizeof(Node));
        ln-&gt;value = 0;
        ln-&gt;next = NULL;
      }
    return ln;
  }
  
  /////////////////////////////////////////////////////////////////////////////
  Node* Load_File(char *Filename)
  {
    //Open file
    FILE* fptr = fopen(Filename, "r");
    Node* ln=NULL;
    Node* temp=NULL;
    long int *x = 0;
  //Validity Check, return 0 if unsuccesful
    if(fptr ==NULL)
      {printf("File didnt open!"); return 0;}
   ln= List_Create(ln);
    while(!feof(fptr))
      {
        fscanf(fptr,"%li",x);
        ln-&gt;value = *x;
        ln-&gt;next = List_Create(temp);
        return(ln);
      }
  </code></pre>