title: Reverses lines from a file given parameter
body: <p>I have to write a function void reverse_file(FILE* file) that reads lines from the parameter file one line at the time into a local character array buffer whose size is #defined as a preprocessor constant MAXLINE. For each line, this function calls the previous reverse_string function to reverse the line, then writes the reversed line in standard output.</p>
  
  <p>I have the reverse_string method</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  void reverse_String(char* str);
  int main()
  {
      char str [256];
      strcpy_s(str, "Hello");
      reverse_String(str);
      return 0;
  }
  void reverse_String(char* str)
  {
      int i, j;
      char temp;
      i=j=temp=0;
  
      j=strlen(str)-1;
      for (i=0; i&lt;j; i++, j--)
      {
          temp=str[i];
          str[i]=str[j];
          str[j]=temp;
      }
      printf("%s",str);
  }
  </code></pre>
  
  <p>I just need help with the reverse_file(FILE* file) part.</p>
  
  <p>Any help is appreciated. </p>