StreamServe I/O Delegator > Running I/O Delegator > Running I/O Delegator in File mode > File handling

File handling
A file that is sent to I/O Delegator for processing in StreamServer is renamed to a unique name by I/O Delegator. This avoids different files with identical names being sent to StreamServer simultaneously.
In File mode, you can specify a prefix and a file extension for the file to be sent to StreamServer. If you do not specify anything, the file will be given a name that consists of
a number that is read from a file. By default this file is nextid.txt. You can use the -idfile argument to specify a different file.
For example, a file can be named 349.txt
Specifying prefix and postfix
You can specify a prefix and a file extension for the file to be sent to StreamServer. If you
specify the -pre argument file, the file will be named file349.txt.
specify the -post argument .dat, the file will be called 349.dat.
You can combine the arguments to give the file the name file349.dat.
When the output file is returned to I/O Delegator by StreamServer, the file is identified by the file name including the prefix and file extension. The file must be created using the same name as the input file.
Specifying a file extension for the error file
.In File mode, you can specify the -efpost argument with a value, for example .err, to receive error files. This can be useful if the client application cannot interpret the data sent to StdIn.
To enable error files to be sent back to the client application, StreamServer must be setup with the same name of the error file as the input file sent to StreamServer.
For example, if the file received by StreamServer is called file349.dat, the file returned from StreamServer must be called file349.dat.err.
OpenText StreamServe 5.6 Updated: 2013-03-01