int tsmStreamToFile ( FILE *stream, char *filename )

Copies a stream to a file

Documentation

Copies a stream to a file.

Once you have opened an http or localdisk stream using tsmOpenStream, you can use this function to copy all of the data from the stream into the specified file. The filename must be a localdisk filename, e.g. "/tmp/foo.html".

Returns:
Returns TRUE upon success, or FALSE otherwise
Parameters:
stream - a valid stream as returned by tsmOpenStream
filename - the name of the file to copy the stream data to
Author:
Martin Reddy
Version:
1 May 1998
See Also:
tsmOpenStream, tsmCloseStream, tsmStreamToBuffer, tsmStreamToStdout


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page