It is simple to get, actually.
The only obscure point is 'file' as 'function argument'. That could mean either 'file pointer' or 'file name'. Assuming is the latter you have to produce something like
int remove_stop_words( const char * source_filename, const char * stop_words_filename)
{
}
such a function must:
- Open both files.
- Read the files content into memory.
- Working in memory, remove from the 'source' content all the words listed in the 'stop words' content.
- Write back (modified) 'source' memory content to the source_filename file.
In order to perform such a task you have to be a little comfortable with
C
file
I/O
. There are many freely available tutorials on this very topic.