I have a problem to open texts files related to pset5. I think that is nothing to do with my code. It's probably the way I ask in the command window or maybe my current directory. Is it the good way to run speller in gedit?
Yes, you're not giving the right parameters. There are two ways to invoke speller:
./speller <file_to_test> ./speller <dictionary_file> <file_to_test>
You've been invoking with one or both parameters that don't lead to files. If you invoke with only one parameter, it will use the default dictionary, large. If you invoke with both parameters, there must be at lease one space between the two parameters. Finally, the test text files are located in the text subdirectory, assuming you have unzipped the files like everyone else and didn't move them.
The following should work:
You can adjust the filename as you see fit to test other files in that directory. This is using a relative path to the file, relative to the current directory. You can also use an absolute path.
If this answers your question, please click the check mark to accept the answer. Let's keep up on forum housekeeping. ;-)