TFile.CreateFileStreamFromFile

From Soldat Community Wiki
Revision as of 16:02, 29 July 2013 by Menturi (talk | contribs) (Description: Removed duplicate sentence)
Jump to: navigation, search
function CreateFileStreamFromFile(const Path: string): TFileStream
 Path: path to file that should be opened
 Result: TFileStream object

Description

This function creates a TFileStream object that is attached file pointed by path parameter. Might throw EAccessDenied exception if path is inaccessible from script's sandbox or access is denied by operating system. The file will be created if it doesn't exist yet.