F_CLOSE
Closes a binary file open with functions F_ROPEN or F_WOPEN.
IMPORTANT:
Avoid using this function. This function is
intended to be obsolete.

Arguments | ||
---|---|---|
ID | DINT | File number returned by F_ROPEN or F_WOPEN |
OK | BOOL | return status TRUE if file close is OK FALSE if an error occurred |
Example
(* FBD program using file management blocks *)

(* ST Equivalence: *)
file_id := F_ROPEN('data.bin'); ok := F_CLOSE(file_id);
Provide Feedback