hello, I have a file I want to read and overwrite... right now I'm just going to try and overwrite it with the same information until i get this part straight... the code I have is giving me an error saying I have conflicting types for fptr.... the file I'm trying to access is a text file with a few lines of text....

could anyone tell me why I'm getting this error. Thank you

Code:

#include <stdio.h>
#include <stdlib.h>
#define Max_Size 80
 



/***** Pointers for input and output files******/
                 
                 FILE *fptr;
                 fptr = fopen("morse.txt","r+");
                 
/******************************/
                 
             
             
             
             
main() {
       
/* This is used to store the output lines */    

   char line[Max_Size + 1]  


      
       while ( fgets ( line, Max_Size + 1, fptr ) != NULL)
       
       fputs( line, fptr);
       
       fclose(fptr);
       return EXIT_SUCCESS; }