load


array load

array load (String filename)

Reads the given file and returns an array containing the text in the file. The array contains one entry for each line in the file.

Parameters:

filename - String containing the path of the file.

Returns:

An array containing the text of the file, one array entry per line of the file. If the file does not exist, or cannot be read, false is returned.

Example:

array = load("data.txt")

i = 0 do while i < array.size()

// Process the element in the array i = i + 1 end


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*