fopen

Open a file.

Syntax

status = fopen ( filespec , mode ) ;

Arguments

str filespec

str mode

Return Value

str status

Exceptions

%ARGUMENT : Invalid arguments. Usage: status = fopen ( filespec , mode ) ;

%FILE : Failed to open file

Description

The file modes for fopen() are as follows:

Examples

To execute the example below, press or modify the example to try different variations.

Related Links

fclose