stream-open

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > Stream Functions >

stream-open

Creates a stream from an existing file.

 

Signature

stream-open(name:string, contenttype:string=contenttype=application/octet-stream) -> stream

 

Parameters

Name

Type

Description

name

string

The path of the source file for this stream.

contenttype

string

Specifies the contenttype to associate to the stream. The default is contenttype=application/octet-stream

 

Examples

To open a text file as a stream, use:

 

stream-open("C:\files\textfile.txt")


© 2019 Altova GmbH