|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| disk.file.save.encode(Filename, Content) |
Parameters
| STRING | Filename | File to save
| | STRING | Content | Text to be saved |
Return value
| Content of the file as a string. |
Description
save and encode a file.
The encoding is a very basic process to protect the data for being read by mistake.
To decode the file, use disk.file.load.decode. |
MioScript Sample Code
disk.file.save.encode(path.desktop("myfile.txt"), "Hello, World!")
alert(disk.file.load.decode(path.desktop("myfile.txt"))) |
|
|
|