title: Reading a line from a file at a specific point
body: <p>so Im writing a code to get scanf a text file and return a format text message log. I'm stuck wondering how to scan strings from file at a certain point and print every string beyond that point E.X When the file scans the line 
  "332982000 2055552002 2055551001 7 Mr Webb, can I ask you a question?" I scan the first 4 numbers as integers and scan the rest of the written text into an char array starting at "Mr. Webb".</p>
  
  <p>I tried using a for loop with fscanf to scan into an array but it didnt work. I was also thinking I could use malloc just to save space but I dont know what to put in the sizeof argument. Any help would be GREATLY appreciated! </p>
  
  <pre><code>int posix;
  int phone1;
  int phone2;
  int textsize;
  int val, val2;
  char line[256];
  char text[3000];
  int len=strlen(line);
  int i=0;
  
  printf("\n\nTime                           %s                           %s", argv[2], argv[3]);
  printf("\n======================================================================================\n\n\n");
  
  FILE* textfile= fopen(argv[1],"r");
  
  fscanf(textfile, "%d %d %d %d %s", &amp;posix, &amp;phone1, &amp;phone2, &amp;textsize, text);
  
  while( fgets(line, sizeof(line), textfile) ) { 
  
      val= atoi(argv[2]);
      val2=atoi(argv[3]);
  
      if ( (val==phone1) &amp;&amp; (val2==phone2) ) {
          printf(" %s ", text); //only prints Mr
          text=(char*)malloc(sizeof())//tried malloc but not too sure how to use it correctly
          for (i=0; i&lt;len; i++) { //tried using for loop here didnt work. 
            fscanf("%s", text);
            }
  
          sortText(phone1, phone2, textsize, text);
          //readableTime(posix);
           }
  </code></pre>
  
  <p>else if ( (val2==phone1) &amp;&amp; (val==phone2) ) {
              printf(" %s ", text);</p>
  
  <pre><code>        sortText(phone1, phone2, textsize, text);
          //readableTime(posix);
           }
  
  
  fscanf(textfile, "%d %d %d %d %s", &amp;posix, &amp;phone1, &amp;phone2, &amp;textsize, text);             
  </code></pre>
  
  <p>}</p>
  
  <pre><code>fclose(textfile);
  return 0;
  </code></pre>
  
  <p>}</p>