OutBufferedStream.Init (METH) ¶ METHOD Init : BOOL InOut: Scope Name Type Return Init BOOL Input streamBase IOutStream
OutBufferedStream.Write (METH) ¶ METHOD Write : BOOL InOut: Scope Name Type Return Write BOOL Input pData POINTER TO BYTE nLen UDINT
OutFileStream (FB) ¶ FUNCTION_BLOCK OutFileStream IMPLEMENTS IOutStream Methods: Close FB_Exit IsOpen Open Write Structure: Close (Method) FB_Exit (Method) IsOpen (Method) Open (Method) Write (Method)
OutFileStream.Close (METH) ¶ METHOD PUBLIC Close
tSysFileGetPos (STRUCT) ¶ TYPE tSysFileGetPos : STRUCT Parameter to get actual file pointer position InOut: Name Type Comment pulPos POINTER TO __XWORD [OUT] Pointer to get actual position of the file pointer from the beginning of the file pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileGetSize (STRUCT) ¶ TYPE tSysFileGetSize : STRUCT Parameter to get file size of the file specified by name InOut: Name Type Comment szFileName STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) - ERR_OK: Successful - ERR_NO_OBJECT: File not available - ERR_FAILED: Failed to get file size pulOut POINTER TO __XWORD [OUT] Size of the file in bytes
tSysFileGetSizeByHandle (STRUCT) ¶ TYPE tSysFileGetSizeByHandle : STRUCT Parameter to get file size of the file specified by handle InOut: Name Type Comment pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) pulOut POINTER TO __XWORD [OUT] Size of the file in bytes
tSysFileGetStatus (STRUCT) ¶ TYPE tSysFileGetStatus : STRUCT Parameter to get the file status InOut: Name Type Comment pOut POINTER TO SYS_FILE_STATUS [OUT] File status. See category file status
tSysFileGetTime (STRUCT) ¶ TYPE tSysFileGetTime : STRUCT Parameter to get file time of the specified file InOut: Name Type Comment szFile STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! pFileTime POINTER TO SYS_FILETIME Pointer to get the file time results. pulOut POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library)
tSysFileOpen (STRUCT) ¶ TYPE tSysFileOpen : STRUCT Parameter to open a file asynchronously InOut: Name Type Comment szFile STRING(254) File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)! am ACCESS_MODE Requested access mode to the file. See |ACCESS_MODE| for details. Here find some examples: AM_READ If file does not exist, an error is returned. If the file exists, the file will be opened AM_WRITE If file does not exist, a new file will be created. If the file exists, it will be overwritten! AM_APPEND If the file does not exist, an error is returned. If the file exists, the file will be opened pResult POINTER TO RTS_IEC_RESULT [OUT] Pointer to the runtime system error code (see CmpErrors2 Interface Library) pulOut POINTER TO RTS_IEC_HANDLE [OUT] Handle to the file or RTS_INVALID_HANDLE if failed