#include <stdio.h>
#include <stdlib.h>
#include <io.h>

int main (void){
     FILE* fin;
     FILE* fout;
    
    
if((fout=fopen("out2.txt","w")) == NULL) {           /*test=file name, r = read mode, which reads from the file*/
    printf("Cannot open file.\n");
    exit(1);
       }
       
if((fin=fopen("data2.TXT","r")) == NULL) {           /*test=file name, r = read mode, which reads from the file*/
    printf("Cannot open file.\n");
    exit(1);
       } 
int c;
for(c=0;c<5;c++){
                 char string[255];
                 int a,b,d;
for(a=0;a<255;a++){
                   fscanf(fin,"%c", &string[a]);
                   }
                   
                   
                  for(a=0;a<255;a++){        
                   
                 
                if(string[a]=='"'|| string[a]=='\''||(string[a]=='/'&&string[a+1]=='*') || (string[a]=='/'&&string[a+1]=='/'))
                
                {
                                    
                  
                  a=a+1;
                 for(b=a;b<255;b++){
                                    
                 fprintf(fout, "%c", string[b]);
                 
                 {if(string[a-1]=='"'&&string[b+1]=='"')
                 break;}
                 
                 {if(string[a-1]=='\''&&string[b+1]=='\'')
                 break;}
                 {if((string[a]=='/'&&string[a+1]=='*')&&(string[b+1]=='*'&&string[b+1]=='/'))
                 break;
                 }
                 
                 
                 
                 }
                 
                 }
                 
                 }
                 
                 
                 break;
                 
                 fprintf(fout,"\n");
                 }
                 
                  
                   
                  
                   
                  
                   


 fclose(fin);  
   fclose(fout); 
  return 0;
}



