- Manuel Scilab
- Entrées/Sorties [fichiers]
- chdir
- fullfile
- getlongpathname
- getshortpathname
- mkdir
- pwd
- rmdir
- basename
- copyfile
- createdir
- deletefile
- dir
- dirname
- dispfiles
- fileext
- fileinfo
- fileparts
- filesep
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- fullpath
- get_absolute_file_path
- getdrives
- getrelativefilename
- %io
- isdir
- isfile
- listfiles
- listvarinfile
- ls
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- pathconvert
- pathsep
- removedir
- save_format
- scanf
- scanf_conversion
- sscanf
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
merror
tests the file access errors indicator
Calling Sequence
err = merror([fd]) [err,msg] = merror([fd])
Arguments
- fd
scalar. The
fd
parameter returned by the functionmopen
. -1 stands for last opened file. Default value is -1.- err
scalar. returns the error status number errnum of the most recent file I/O operation associated with the specified file.
If the most recent I/O operation performed on the specified file was successful, the value of msg is empty and merror returns an err value of 0.
- msg
string. returns the error string message.
Description
The function merror
is used to tests the file
access errors indicator. returning non-zero if it is set. The error
indicator can only be reset by the mclearerr
function.
A nonzero err indicates that an error occurred in the most recent file I/O operation. The value of message is a string that can contain information about the nature of the error. If the message is not helpful, consult the C run-time library manual for your host operating system for further details.
Examples
<< meof | Entrées/Sorties [fichiers] | mfprintf >> |