logo-header

 
 

syntax

  • InitFile(sourcefile, targetfile)

definition

InitFile(sourcefile, targetfile) copies the sourcefile to the targetfile. If the targetfile already exists, it will not be overwritten.

description

Alwas use forward slashes(/) in file names in stead of backward slashes.

applies to

Data items sourcefile and targetfile with string value type

conditions

The sourcefile must exist, if not an error is generated. The directory to which the file is copied will be created, if it did not already exists.

since version

5.15

example

parameter<string> InitFile := 
InitFile('c:/te/test.txt', 'd:/te/test.txt')

Result: Updating this item copies the source file c:/te/test.txt to the target file d:/te/test.txt if this targetfile does not yet exists.

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904