Difference between revisions of "TFile.CreateFileStreamFromFile"

From Soldat Community Wiki
Jump to: navigation, search
m (Description: Removed duplicate sentence)
Line 3: Line 3:
 
   Result: [[TFileStream]] object
 
   Result: [[TFileStream]] object
 
==Description==
 
==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. The file will be created if it doesn't exist yet.
+
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.
 
[[Category:TFile]]
 
[[Category:TFile]]

Revision as of 17:02, 29 July 2013

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.