WriteOFXDataFile Method
Writes the OFX response sent by the server to a file.
Syntax
ANSI (Cross Platform) int WriteOFXDataFile(const char* lpszFileName); Unicode (Windows) INT WriteOFXDataFile(LPCWSTR lpszFileName);
- (void)writeOFXDataFile:(NSString*)fileName;
#define MID_LOANSTATEMENT_WRITEOFXDATAFILE 8 IPWORKSOFX_EXTERNAL int IPWORKSOFX_CALL IPWorksOFX_LoanStatement_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method records the entire OFX response, including HTTP and OFX headers to a file. This file can later be read and parsed by the ReadOFXDataFile method as though it were a live response.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)