OpenFile()

Syntax

Result = OpenFile(#File, FileName$)

Description

It will open the designed file or create it if it doesn't exists. You can perform read and write on this file. If 'Result' is not 0, the file is effectively opened, else the file can't be opened. It must be always tested, as performing operations on a non opened file will cause severe crashs.

Supported OS

Windows, AmigaOS, Linux

File - Index