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

int main()
{
char s[50], aux[50], t,ch;

int i,j, size;
printf("Enter the name of your chosen file: ");
gets(s);

size=strlen(s);
ch='.';

for(i=0;i<size;i++)
{
if(s[i] != ch)
   {
   t = s[i];
   aux[j] = t;
   j++;
   }
}
aux[j] = '\0';

printf("The name of your file without dot extension indicators is: %s \n",aux);
return 0;

}

```

I made a simple program that takes a file name as an input and returns the file name without the dots. For example, if I enter file.txt.kk.f , the program will return filetxtkkf. I was wondering if it is possible to put each one of the given extensions into its own string and at the end output the name of the file and each extension eg : name: file extension1: txt , extension2= kk and extension3: f .