HyperNext Studio > Files

Save & Load Data from file

(1/1)

LinesOfCodes:
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.

Malkom:

--- Quote from: LinesOfCodes 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.

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version