🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to read a local file in javascript

Started by
10 comments, last by 8Observer8 4 years, 11 months ago

You can keep your TXT files locally on the Plunker playground. For example, you have the TXT file that contains you level like this:

Level_001.txt


10000
00100
00100
00100
20000

Playground

As you can see I read the file with XMLHTTPRequest and print it on the page.

This topic is closed to new replies.

Advertisement