int tsmStreamToFile ( FILE *stream, char *filename ) Copies a stream to a file
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".