Ask coding questions

← Back to all posts
1
.txt files
vedprad1 (477)

I wanted to know if there is any way to use a .txt file in either Java or HTML, CSS, and JS? All of my attempts have resulted in errors or exceptions.

Commentshotnewtop
1
vedprad1 (477)

I was recently testing this and I found out that it actually works in node.js! I still have not tested it in other languages.

1
TheDrone7 (519)

How do you want to use the text files?
You can make and edit text files manually but you won't be able to make permanent changes to the file system programmatically.

1
vedprad1 (477)

@TheDrone7 : Thanks for answering my question! I wanted to make changes through code, but it never worked. Thanks for clearing my confusion!

1
TheDrone7 (519)

@vedprad1 it would be great if you marked my comment as the answer.

1
vedprad1 (477)

@TheDrone7 : Actually, I was recently testing this and I found out that it actually works in node.js! I still have not tested it in other languages.