Lines Loader

This loader reads the contents of the file as text and returns a list of strings. Each string represents a single line from the file, from first to last.

File Format

The file is read as a text, where each line is separated by the line separator for your platform. e.g. for the following file saved with an extension of line:

R1F1, R1F2, R1F3, "R1F4", R1F5
field 1,field 2, "field 3" ,field 4 , field 5
item
3, "item
4"
        

The above would return the following list:

[
R1F1, R1F2, R1F3, R1F4, R1F5,
field 1,field 2, "field 3" ,field 4 , field 5,
item,
3, "item,
4"
]
        

Use

  1. Create an lines file in your inventory, containing the required lines, as detailed in the file format. e.g Lets assume you create a file called sometext.lines.
  2. To use the connection within a script, we just have to refer to the name of the lines file, e.g.
    sometext
                
    and this will load the connection for us. This can then be used just like any other list.

Notes