RichEdit.loadFile

Overview | Methods | This Package | All Packages

RichEdit.loadFile

Loads a Rich Text Format (RTF) or text file into the RichEdit control.

Syntax

public void loadFile( String path )

public synchronized void loadFile( String path, int fileType )

Parameters

path

The path to the file.

fileType

The file type to load. This value must be one of the enumeration constants defined in the RichEditStreamType class.

Exceptions

WFCInvalidArgumentException thrown when an invalid value is specified in the fileType parameter.

WFCException thrown when an error occurs while loading the file.

See Also   saveFile