Discuss this help topic in SecureBlackbox Forum

Work with files via stream classes

Most SecureBlackbox classes use stream objects to load and save the data. Stream objects are native to some, but not all platforms, supported by SecureBlackbox.

VCL/NG edition: you can use regular TFileStream) class to work with streams.

.NET edition: you can use regular System.IO.FileStream class to work with streams.

Java edition: you can use both standard java.io.InputStream/OutputStream descendants or TElFileStream class provided by SecureBlackbox. Supported stream types depend on particular class and its methods.
TElFileStream can be used to work with file streams in Java:

TElFileStream fs = new TElFileStream(filename, "rw");
// work with file
fs.close();

PHP Edition: You can use TFileStream class, provided by SecureBlackbox, to work with files:

$file = new TFileStream($filename, TFileMode::fmOpenRead);
// work with file stream

C++ Edition: You can use TFileStream class, provided by SecureBlackbox, to work with files:

TElFileStream fs = new TElFileStream(filename, "rw");
// work with file
fs.close();

How To articles about basic library-related questions

Discuss this help topic in SecureBlackbox Forum