Open file

Command group Flag affected Reversible Execute on client Platform(s)
External commands YES NO NO Windows,Linux

Syntax

Open file (pathrefnum [,'r']) Returns err-code

Description

Note: The flag is set according to whether Omnis was able to make a call to this external command.

It returns an error code (See Error Codes), or zero if no error occurs.

Example

; Prompt the user for a file for opening
Do FileOps.$putfilename(lPathname,'Select a file','') Returns lReturnFlag
If lReturnFlag
  Open file (lPathname,lRefNum)
End If