-1

With AJAXs help it's posible to load data from file, but is it possible to save a value of string variable to file? I want to hold data in file with .txt extension and load it when I will need it.

daniel098
  • 99
  • 8

1 Answers1

0

You will need a server side. Assuming you do, send the data back and forth via GET/POST, and edit/save it from the server side. Unless you want the user to pick the file themselves, you can use the FileReader js object with . Otherwise, for security reasons, you cannot. That would give your system access to any user's home directories on their machine.

Caspar Wylie
  • 2,818
  • 3
  • 18
  • 32