ISaGRAF. Version 3.4

Уборка офисов спб на alfacleaning.ru. |

FM_WRITE


:

ID INT : F_ROPEN

IN MSG ,

ok BOO

TRUE

:

. F_WOPEN F_CLOSE. , . F_WOPEN , . ISaGRAF.

(*FBD , *)

(* ST : *)

file_id := F_WOPEN('trace.txt');

ok := FM_WRITE(file_id,'First message');

ok := FM_WRITE(file_id,'Last message');

ok := F_CLOSE(file_id);

(* IL : *)

LD 'trace.txt'

F_WOPEN

ST file_id

FM_WRITE 'First message' (* *)

ST ok

LD file_id

FM_WRITE 'Last message' (* *)

ST ok

LD file_id

F_CLOSE

ST ok