file.read
Reads a file and outputs a string of what's in it.
Intended for conditional branches and setting variables.
Code:
file.read("path", "file.type")
"" for path means the main game folder, the rest is required.
This will return
TRUE in a conditional branch (if tanoshindekudasai.txt is exactly "Arigato gozaimasu!!!"):
Code:
file.read("", "tanoshindekudasai.txt") === "Arigato gozaimasu!!!"
Using Control Variables, set a variable to
Code:
file.read("", "tanoshindekudasai.txt")
and the variable will be set to "Arigato gozaimasu!!!" or whatever tanoshindekudasai.txt contains.
Screenshot example: