openFile ?-attributes num? ?-encoding name? ?-geom {l b w h}? ?-bar token? ?-adjust (0|1)? ?-wrap (0|1)? path
Open a text file with path given by the last argument in a new document window. The
-adjust, -attributes, -bar, -geom and -wrap options have the exact same meaning as with the [openWindow] command.
The -encoding option specifies the encoding of the new document: this is the encoding which will be used to read the contents of the file. Its default value is given by the inputEncoding preference.
The command returns the full name of the window (including the copy number if any).