The program generates a blank space at the first line of the "data.txt" file and also generates a one more serial number.
    #include<stdio.h>
    #include<string.h>
    
    int main(){
        int limit;
        int i = 0;
        printf("How many approxmiate size of your list will be: \n");
        scanf("%d", &limit);
        char list[100][100];
         
        
        FILE *store;
        store = fopen("data.txt", "w");
        while(i<=(limit - 1)){
            printf("Enter task: \n");
            gets(list[i]);
            fprintf(store,"%s\n%d)",list[i], i+1); 
            i++;
        }
    
        fclose(store);
        return 0;
    }
 
    