For a file to be sent from the execution server to the application server, it must be written to the default result folder on the execution server.
GetDirectory(DIRECTORY_RESULT, sDir, sizeof(sDir)); FOpen(hFile, sFileName, OPT_FILE_ACCESS_READWRITE, OPT_FILE_CREATE); FWrite(hFile, sOutput, strlen(sOutput)); FClose(hFile);