# How to read a local file in javascript

## Recommended Posts

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

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

## Create an account

Register a new account

• 18
• 26
• 11
• 21
• 16