Go to: Synopsis. Return value. Related. MEL examples.
 freadAllLines 
string
      
freadAllLines is NOT undoable, NOT queryable, and NOT editable.
The freadAllLines command reads all lines of text from a file into an array of strings.| string[] | Lines of text | 
// Read all lines of text from a file into an array of strings
//
string $exampleFileName = ( `internalVar -userTmpDir` + "example.tmp" );
string $allLines[] = freadAllLines($exampleFileName);
string $line;
for($line in $allLines)
{
	print("Line: " + $line + "\n");
}