#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct llnode {
          char *name;
          int points;
          struct llnode *next;
};



int main(void) {
    
    
    
  char szContent[2048]={'\0'};
  int numread =0;
  int c,i;
 
  FILE *pFile = fopen("c:/test.txt","r");

  if(pFile)
  {
    do{
            c = fgetc (pFile);
            szContent[numread++] = c;
            
    } while (c != EOF && (numread < sizeof(szContent)-1));

    
    fclose(pFile);
  }
  

    llnode node1[20], node2[20], node3[20],node4[20],node5[20], *head;
    i=0;
    do{
           node1[i].name="szContent[i]";
           i++;
            
    } while ( szContent[i]!='\n');
    
      do{
           node2[i].name="szContent[i]";
            
    } while (szContent[i]!='\n' );
    
    do{
           node3[i].name="szContent[i]";
           i++;
            
    } while (szContent[i]!='\n');
    
    
    do{
           node4[i].name="szContent[i]";
           i++;
            
    } while (szContent[i] !='\n' );
 
    do{
           node5[i].name="szContent[i]";
           i++;
            
    } while (szContent[i] !='\n' );
 

    node1[20].next = &node2;
    node2[20].next = &node3;
    node3[20].next = &node4;
    node4[20].next = &node5;
    node5[20].next = NULL;
    


    
    
    
    
    
    

  
  
    system("pause");
    return 0;

}
