Difference between revisions of "TFile.CreateStringListFromFile"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''function CreateStringListFromFile(const Path: string): TStringList''''' Path: path to file that should be opened Result: TStringList object ==Description== ...")
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
   Result: [[TStringList]] object
 
   Result: [[TStringList]] object
 
==Description==
 
==Description==
This function creates a [[TStringList]] object that is attached file pointed by path parameter.
+
This function creates a [[TStringList]] 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.
 
[[Category:TFile]]
 
[[Category:TFile]]

Latest revision as of 15:30, 26 July 2013

function  CreateStringListFromFile(const Path: string): TStringList
 Path: path to file that should be opened
 Result: TStringList object

Description

This function creates a TStringList 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.