0

So I wrote my load function and everything looks good, so I had it return true so I could move on and test other parts of the program. My problem is that speller.c won't load my text. I made a custom text file with one sentence in it and saved it as mytext.txt. I did the same thing to test load, I created mydict.txt, and speller loads that file no problem, but when I do the exact same thing for text fopen keeps failing and returning NULL. mytext.txt is in the pset5 directory with all the other files, and when I check it out with gdb the filename is correct and everything. I can't figure out why it won't load, and I'm not really sure what to do about it, seeing as we're not allowed to alter speller.c in any way. Any ideas? Thanks in advance for any advice!

0

Nevermind, my apologies. I was not diligent enough, mytext.txt was being saved in the home directory and not the pset5 directory. No problem here.. thanks anyway!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .