Example: Flat-File APIs
This example writes text to a flat file that would only be read by JD Edwards EnterpriseOne. Encoding in the file will be Unicode.
FILE *fp; fp = jdeFopen(_J( c:/testBSFNZ.txt), _J(w+)); jdeFprintf(fp, _J("%s%d\n"), _J("Line "), 1); jdeFclose(fp);
This example writes text to a flat file that would be read by third-party systems. Encoding in the file will be based on the encoding configured.
FILE *fp; fp = jdeFopen(_J( c:/testBSFNZ.txt), _J(w+)); jdeFprintfConvert(lpBhvrCom, fp, _J("%s%d\n"), _J("Line "), 1); jdeFclose(fp);