Program Not Working As Expected : I am writing a program that allows the user to type in a "stop word" (https://en.wikipedia.org/wiki/Stop_words) and returns which language that stop word is contained within. The program is crashing, I almost said inexplicably, but I am no expert at C so I'm sure there is an explanation. I'm here because I cannot figure it out.

I hate to post my entire code, but I really don't know where my problem lies, and I want to supply you with replicable code. Here is my code followed by an example stop word file.

#StopWords.c
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <dirent.h>
    #include <stddef.h>
    #include <string.h>
    
    typedef struct
    {
    	char languageName[60];
    	//FILE fp;
    	char stopwords[2000][60];
    	int wordcount;
    } LangData;
    
    typedef struct
    {
    	int languageCount;
    	LangData languages[];
    } AllData;
    
    AllData *LoadData(char *);
    
    int main(int argc, char **argv)
    {
    	AllData *Data;
    	Data = LoadData(argv[1]);
    	char word[60];
    
    	//Get word input from user
    	printf("Enter a word to search: ");
    	fgets(word, 60, stdin);
    
    	//Search for word and print which languages it is found in.
    	int i = 0;
    	int k = 0;
    	int found = -1;
    	while(i < Data->languageCount)
    	{
    		while(k < Data->languages[i].wordcount)
    		{
    			if(strcmp(word, Data->languages[i].stopwords[k]) == 0)
    			{
    				found = 0;
    				printf("Word found in %s", Data->languages[i].languageName);
    				k++;
    			}
    		}
    		i++;
    	}
    
    	if(found == -1)
    		printf("Word not found");
    
    	return 0;
    }
    
    AllData *LoadData(char *path)
    {
    	//Initialize data structures and open path directory
    	int langCount = 0;
    
    	DIR *d;
    	struct dirent *ep;
    	d = opendir(path);
    
    	//Checks whether directory was able to be opened.
    	if(!d)
    	{
    		perror("Invalid Directory");
    		exit(-1);
    	}
    
    	//
    	// Only executed if directory is valid.
    	// v v v v v v v v v v v v v v v v v v
    
    	//Count the number of language files in the directory
    	while(readdir(d))
    		langCount++;
    
    	//Account for "." and ".."
    	//langCount = langCount + 1;
    	langCount = langCount - 2;
    
    	//Allocate space in AllData for languageCount
    	AllData *data = malloc(offsetof(AllData, languages) +
    			sizeof(LangData)*langCount);
    	data->languageCount = langCount;
    
    	int i = 0;
    	int k = 0;
    	//Initialize Word Counts to zero for all languages
    	for(i = 0; i < langCount; i++)
    	{
    		data->languages[i].wordcount = 0;
    	}
    
    	//Reset the directory in preparation for reading names
    	rewinddir(d);
    
    	//Get name of language for each file
    	i = 0;
    	while((ep = readdir(d)) != NULL)
    	{
    		if (!strcmp(ep->d_name, ".") || !strcmp(ep->d_name, ".."))
    		{
    		    //Filtering "." and ".."
    		}
    		else
    		{
    			int size = strlen(ep->d_name);
    			strcpy(data->languages[i].languageName, ep->d_name);
    			data->languages[i].languageName[size - 4] = '\0';
    			i++;
    		}
    	}
    
    	//Reset the directory in preparation for reading data
    	rewinddir(d);
    
    	//Copy all words into respective arrays.
    	char word[60];
    
    	i = 0;
    	k = 0;
    	int j = 0;
    	while((ep = readdir(d)) != NULL)
    	{
    		if (!strcmp(ep->d_name, ".") || !strcmp(ep->d_name, ".."))
    		{
    		    //Filtering "." and ".."
    		}
    		else
    		{
    			FILE *entry;
    			char fullpath[100];
    			memset(fullpath, 0, sizeof fullpath);
    			strcpy(fullpath, path);
    			strcat(fullpath, "\\");
    			strcat(fullpath, ep->d_name);
    			entry = fopen(fullpath, "r");
    			while(fgets(word, 60, entry) != NULL)
    			{
    				j = 0;
    				while(word[j] != '\0')
    				{
    					data->languages[i].stopwords[k][j] = word[j];
    					j++;
    				}
    				k++;
    				data->languages[i].wordcount++;
    			}
    			i++;
    			fclose(entry);
    		}
    		memset(ep, 0, sizeof *ep);
    	}
    
    	return data;
    }

#english.txt

    consider
    seven
    without
    know
    very
    via
    you'll
    can't
    that
    doesn't
    getting
    hereafter
    whereas
    somewhat
    keeps
    soon
    their
    better
    awfully
    non
    ever
    but
    it's
    got
    within
    hello
    above
    came
    seems
    appreciate
    nd
    particularly
    especially
    useful
    when
    never
    need
    be
    here
    yourselves
    alone
    we're
    down
    able
    whose
    going
    perhaps
    didn't
    really
    want
    twice
    there
    yours
    used
    against
    gotten
    ltd
    wonder
    concerning
    actually
    only
    were
    anything
    hadn't
    thru
    sometimes
    various
    first
    it
    overall
    between
    onto
    won't
    best
    about
    indicates
    gets
    over
    saying
    ought
    according
    hence
    let
    serious
    everywhere
    there's
    nine
    mean
    has
    ex
    a
    than
    c's
    necessary
    following
    around
    tends
    still
    if
    yes
    these
    uses
    secondly
    t's
    am
    changes
    up
    each
    available
    otherwise
    seen
    nobody
    seeming
    outside
    apart
    cause
    off
    thereafter
    could
    hereby
    new
    specify
    get
    fifth
    sent
    toward
    during
    sorry
    another
    i'll
    hopefully
    should
    anyhow
    keep
    for
    welcome
    aren't
    etc
    thanks
    vs
    insofar
    whole
    happens
    whereupon
    isn't
    seem
    relatively
    near
    despite
    plus
    meanwhile
    they'll
    look
    eg
    greetings
    whereafter
    i'm
    self
    selves
    almost
    un
    did
    inner
    oh
    after
    four
    five
    follows
    com
    nearly
    some
    say
    like
    later
    further
    being
    somehow
    beforehand
    you
    think
    his
    ones
    aside
    forth
    its
    however
    novel
    rather
    name
    does
    again
    both
    nothing
    what
    right
    formerly
    accordingly
    allows
    theres
    please
    thats
    will
    towards
    sub
    they're
    well
    thereby
    possible
    entirely
    a's
    had
    among
    probably
    c'mon
    quite
    th
    let's
    regarding
    clearly
    beside
    until
    besides
    at
    might
    less
    the
    causes
    where's
    doing
    howbeit
    contains
    respectively
    and
    thereupon
    somewhere
    ain't
    same
    wouldn't
    haven't
    took
    whence
    others
    namely
    any
    before
    certainly
    willing
    although
    else
    unlikely
    use
    those
    throughout
    she
    so
    along
    merely
    we'd
    using
    no
    where
    everybody
    once
    usually
    asking
    not
    therein
    least
    it'd
    someone
    anyway
    under
    you're
    maybe
    particular
    because
    out
    downwards
    looks
    rd
    saw
    appropriate
    theirs
    definitely
    furthermore
    whenever
    qv
    you've
    wherever
    next
    knows
    gone
    instead
    who's
    do
    somebody
    comes
    shouldn't
    wants
    more
    as
    inasmuch
    seriously
    come
    an
    known
    are
    nevertheless
    inward
    thoroughly
    anybody
    amongst
    far
    either
    something
    considering
    described
    them
    most
    moreover
    last
    regardless
    regards
    us
    sup
    per
    herein
    seeing
    already
    they
    your
    while
    course
    thank
    by
    tell
    here's
    becoming
    having
    he
    mainly
    help
    okay
    our
    other
    unfortunately
    often
    behind
    everything
    nor
    ours
    don't
    see
    obviously
    whither
    himself
    reasonably
    take
    wasn't
    thanx
    therefore
    now
    enough
    across
    would
    taken
    two
    then
    or
    which
    placed
    they've
    one
    specifying
    former
    it'll
    have
    sometime
    believe
    with
    sure
    shall
    such
    that's
    they'd
    from
    every
    co
    how
    was
    ok
    on
    liked
    truly
    exactly
    seemed
    given
    been
    indicated
    try
    gives
    latter
    unless
    corresponding
    likely
    anywhere
    weren't
    thorough
    cant
    except
    anyone
    currently
    second
    go
    everyone
    third
    can
    too
    beyond
    my
    anyways
    specified
    we've
    tries
    wish
    hasn't
    noone
    sensible
    thus
    became
    said
    elsewhere
    to
    brief
    we
    since
    herself
    him
    whom
    needs
    i've
    would
    much
    ask
    you'd
    goes
    who
    inc
    hardly
    cannot
    done
    this
    thence
    whereby
    viz
    neither
    myself
    presumably
    themselves
    immediate
    whoever
    uucp
    value
    whatever
    appear
    old
    latterly
    itself
    lately
    also
    even
    together
    few
    ourselves
    went
    yourself
    six
    provides
    just
    of
    hereupon
    nowhere
    hi
    contain
    many
    followed
    her
    wherein
    he's
    become
    unto
    though
    indicate
    may
    is
    allow
    in
    none
    becomes
    upon
    afterwards
    et
    i
    what's
    normally
    mostly
    zero
    we'll
    example
    edu
    several
    always
    through
    que
    three
    all
    way
    associated
    containing
    indeed
    whether
    i'd
    couldn't
    why
    trying
    own
    lest
    below
    ignored
    yet
    kept
    hither
    re
    little
    looking
    eight
    me
    must
    ie
    consequently
    hers
    away
    certain
    tried
    says
    different
    into

When I run the program (I am using Windows, sue me) this is the command I would type:

StopWords C:\Users\Name\Desktop\Stop_Words_Directory

The parameter is simply a path to the directory in which the language files (e.g. english.txt) are located. 

I apologize again for the mountain of code, but I am lost here and would be extremely grateful if someone can help.