Silverfrost Logo About Us | Contact Us
 

OPENRW@

Platform

x64, Win32

Purpose

To open a file for reading or writing.

Syntax

SUBROUTINE OPENRW@(FILE, HANDLE, ERROR_CODE)
CHARACTER (LEN=*) FILE
INTEGER (KIND=2) HANDLE, ERROR_CODE

Description

This routine opens a file FILE for reading or writing and returns the file handle HANDLE for use with other file handling routines. If the file does not exist it is created, however an existing file is not emptied and may be over-written at the current position. If the intended action depends on whether or not a given file exists, then a prior call to OPENR@ can be used to test if it does exist. ERROR_CODE is returned as zero if the operation has succeeded, otherwise it is returned with the relevant system error code.

 

 

Copyright © 1999-2017 Silverfrost Limited