Difference between revisions of "$ferr"

From Scriptwiki
Jump to: navigation, search
(No difference)

Revision as of 09:27, 19 December 2005

Indicates there was a file error of some kind.


Returns 1 if an error occured, 0 else.


; we open a file we probably don't have, but silently (the dot infront of the command)
.fopen moo we_dont_have_this_file.txt
; check whether $ferr returns 1 (true) and echo it
if ($ferr) { echo -a An error occured. }
; else echo that no error occured.
else { echo -a No error occured. }