in reply to How do I read in a document, remove the stop words and then write the result to a new file?

To write to a file, change:
open(TEST, "results_stopwords.txt") or die("Unable to open requested f +ile.");

to:

open(TEST, ">results_stopwords.txt") or die("Unable to open requested +file.");
open
  • Comment on Re: How do I read in a document, remove the stop words and then write the result to a new file?
  • Select or Download Code