StringArray.ReadFromFile(String) Method

Top 

Description

Reads the entire contents of a file and places each line into an individual element of a StringArray.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

StringArray.ReadFromFile(

String filename)

 

 

Arguments

filename


Description:

Name of the file to be read. This method should only be used with ASCII-formatted files. To read binary files, use the FileInterface object.

 

 

 

Return Value

Type:

boolean

 

 

Returns the number of lines read. If the file could not be read, returns 0.

 

Syntax

myVariable1 = myStringArray1.ReadFromFile(myString1);

 

 

See also

StringArray Object

Parsing Arbitrary String Data