FileWriteMode Property

Controls how the output file is opened.

Syntax

ANSI (Cross Platform)
int GetFileWriteMode();
int SetFileWriteMode(int iFileWriteMode); Unicode (Windows) INT GetFileWriteMode();
INT SetFileWriteMode(INT iFileWriteMode);

Possible Values

FWM_CREATE(0), 
FWM_OVERWRITE(1),
FWM_APPEND(2)
@property (nonatomic,readwrite,assign,getter=fileWriteMode,setter=setFileWriteMode:) int fileWriteMode;
- (int)fileWriteMode;
- (void)setFileWriteMode:(int)newFileWriteMode;

Possible Values

FWM_CREATE(0), 
FWM_OVERWRITE(1),
FWM_APPEND(2)
#define PID_X12WRITER_FILEWRITEMODE 1

IPWORKSX12_EXTERNAL void* IPWORKSX12_CALL IPWorksX12_X12Writer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSX12_EXTERNAL int IPWORKSX12_CALL IPWorksX12_X12Writer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property controls how the component will open the output file specified in OutputFile. Possible values are:

fwmCreate (0)Always create a new file. If the file already exists, an error will be raised.
fwmOverwrite (1)If the output file already exists, it will be overwritten.
fwmAppend (2)If the output file already exists, data will be appended to it.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks X12 2020 C++ Edition - Version 20.0 [Build 8155]