I have some raw text files with words. I want to insert those words into a local collection in mongodb. How does one read from a text file using a .js script? Whilst this is probably trivial I found no clear way of reading a local text file in javascript.
Edit: Just to be clear, the text files and the database are local.