Thanks. Actually, I think what I was going to do was a bad idea. Instead, I read all 5000 words from the file into an arraylist, at runtime. That way I didn't have to deal with the file anymore, and that worked out well.