F_ROPEN
Opens a binary file in read mode. For use with FA_READ, FM_READ, and F_CLOSE.
IMPORTANT:
Avoid using this function. This function is
intended to be obsolete.

Arguments | ||
---|---|---|
PATH | MESSAGE | May include the access path to the file using the \ or / symbol to specify a directory. To ease application portability, / or \ is equivalent. |
ID | DINT | File number 0 if an error occurs: file does not exist |
Example
(* FBD program using file management blocks *)

(* ST Equivalence: *)
file_id := F_ROPEN('c:\data \data.bin'); error := (file_id=0);
Provide Feedback