Skip to content
← Back to Community
.txt files
Profile icon
vedprad1

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.

Voters
Profile icon
RiraPratis
Profile icon
vedprad1
Comments
hotnewtop
Profile icon
vedprad1

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.

Profile icon
TheDrone7

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.

Profile icon
vedprad1

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

Profile icon
TheDrone7

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

Profile icon
vedprad1

@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.