Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : READ-FILE( ) method
 

READ-FILE( ) method

Clears an editor widget, reads the contents of a specified text file into the widget, and sets the widget's MODIFIED attribute to FALSE.
Return type: LOGICAL
Applies to: EDITOR widget

Syntax

READ-FILE ( filename )
filename
A character-string expression equal to the full or relative pathname of a file. If you specify a relative pathname, the READ-FILE( ) method searches PROPATH to find the file. The pathname can contain Unicode characters. See OpenEdge Development: Internationalizing Applications for more information about Unicode.
If the operation is successful, the method returns TRUE.
In Windows, this method interprets a carriage return character followed by a line feed character as a text line terminator. In all other interfaces, this method interprets a carriage return character as a text line terminator.