Author Topic: Save & Load Data from file  (Read 6453 times)

LinesOfCodes

  • Newbie
  • *
  • Posts: 10
  • ?
    • S Universal Group - website
Save & Load Data from file
« on: October 02, 2020, 10:58:59 AM »
Hello, I want to ask a question.
Does HyperNext support save/load data from the XML/JSON/Plain text file? Like, save a value of a variable(s), load value of a variable from a file, etc.
Because I want to save my program data and settings there.
I will ask the thing I doesn't know.

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 464
  • Here to help you
Re: Save & Load Data from file
« Reply #1 on: October 03, 2020, 10:38:39 AM »
Hello, I want to ask a question.
Does HyperNext support save/load data from the XML/JSON/Plain text file? Like, save a value of a variable(s), load value of a variable from a file, etc.
Because I want to save my program data and settings there.

HN doesn't have support for XML/JSON but can easily write files to text or binary files.

By default when an HN program/stack closes it automatically saves all of its local and global variables, including content of fields etc.
Then the next time the HN program/stack is run those variables etc are automatically reloaded.
This makes it much easier for beginner programmers.
« Last Edit: October 03, 2020, 04:47:57 PM by Malkom »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.