Ask coding questions

← Back to all posts
JavaScript .txt Files.
h
AloegelhiPlaysR (109)

How do I read a .txt file in javascript? I imagine it doesn't work the same as .js files or ./../js.js files.

Answered by SixBeeps (5061) [earned 5 cycles]
View Answer
Comments
hotnewtop
SixBeeps (5061)

Is this in Node? You can use the fs module for that.