Skip to content
Discussion options

You must be logged in to vote

Hey! Your code looks mostly good, but here are a few things to check: First, make sure that example.txt is in the same directory as your script; you can add console.log(__dirname); to confirm the current directory. Also, check if any error messages are being logged to the console when you run the script, as that could give you a clue about what's going wrong. Make sure you're running the script with node yourscript.js in the terminal, and check your Node.js version with node -v to ensure it's up to date. If everything seems fine and it’s still not working,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fadile-anass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
2 participants