How to read a local file in javascript

Started by
10 comments, last by 8Observer8 4 years, 9 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