Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
32
rated 0 times [  36] [ 4]  / answers: 1 / hits: 34989  / 11 Years ago, tue, july 30, 2013, 12:00:00

I want to create a very simple Javascript game using HTML5 (Canvas). But is it possible to save a simple .txt file and load a simple .txt file. I just need to store like the some simple integers. But I just want to know if javascript is allowed to save and load an external file?



Canvas


More From » file

 Answers
10

On Chrome, you can rely on the FileSystem API (for an intro take a look here). Probably other browsers will soon add support to it.



But, if your need is just to store like the some simple integers I would consider local storage.


[#76642] Monday, July 29, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pierceabnerc

Total Points: 430
Total Questions: 92
Total Answers: 102

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;