JS – how to get a word from a break separated txt file

  javascript, node.js

I have a text file: words.txt which contains:

random
word
one
two
three
five
hello
world
...

In nodejs how would I get the word in the nth row?

Source: Ask Javascript Questions

LEAVE A COMMENT