Single Line Loader

This loader reads the contents of the file as text and returns the first line only.

File Format

The file is read as a text, where each line is separated by the line separator for your platform. Hence the text up to the first line separator are read and returned as a string. 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 string:

R1F1, R1F2, R1F3, R1F4, R1F5
        

Use

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

Notes