ImageEn, unit ievision

TIEVisionLibrary.createFileStream

TIEVisionLibrary.createFileStream


Declaration

function createFileStream(filename: PAnsiChar; mode: TIEVisionFileStreamMode): TIEVisionFileStream; overload; safecall;
function createFileStream(filename: PWideChar; mode: TIEVisionFileStreamMode): TIEVisionFileStream; overload; safecall;
function createFileStream(): TIEVisionFileStream; overload; safecall;


Description

First two overloads create a file stream using specified mode.
Third overload create an unopened file stream.

Parameter Description
filename ANSI or Unicode file name.
mode File mode.



Example

// open "input.dat" as readonly file
filestream := createFileStream('input.dat', ievREAD);

// create "output.dat"
filestream := createFileStream('output.dat', ievCREATE);

// open "input.dat" as readonly file
filestream := createFileStream();
filestream.open('input.dat', ievREAD);