Difference between revisions of "TFile.CreateFileStreamFromFile"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''function CreateFileStream(const Path: string): TFileStream''''' Path: path to file that should be opened Result: TFileStream object ==Description== This func...")
 
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  '''''function CreateFileStream(const Path: string): [[TFileStream]]'''''
+
  '''''function CreateFileStreamFromFile(const Path: string): [[TFileStream]]'''''
 
   Path: path to file that should be opened
 
   Path: path to file that should be opened
 
   Result: [[TFileStream]] object
 
   Result: [[TFileStream]] object
 
==Description==
 
==Description==
This function creates a [[TFileStream]] object that is attached file pointed by path parameter.
+
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.
 
[[Category:TFile]]
 
[[Category:TFile]]

Latest revision as of 22:35, 4 April 2016

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.