|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| disk.file.load.array(Filename, ArrayName, Separator) |
Parameters
| STRING | Filename | File to load.
| | ARRAY | ArrayName | Name of an array to be filled with the content of the file.
| | STRING | Separator | Optional. Delimiter to slice the file in the array. |
Return value
No value is returned.
Description
Load a text file from disk and slice the content in an array.
As the array is not cleared by the function, You should clear it with var.array.clear. |
MioScript Sample Code
var.array.clear(myArray)
// Load a file - one line = one item in the array
disk.file.load.array(path.desktop("myfile.txt"), myArray, str.char(10)) |
|
|
|