There is a text file named 'stoplist' containing a list of words, like this:

a
the
they
we
be
is
...

What I wanna do is to store them in a Vector. I've got the following code:

Vector stopList = new Vector();
File stoplist = new File("C:\\Text_Preprocessing\\stoplist.txt");
FileReader stopword = new FileReader(stoplist);
int s = stopword.read();
while (s != -1) {
StringBuffer StopString = new StringBuffer();
if (s!='\n') StopString.append((char)s);
else stopList.addElement(StopString.toString());
}
stopword.close();


However, it can not be run! Where is the problem?