Creating a File Object
- Last UpdatedOct 24, 2022
- 1 minute read
A file object is created by invoking the FILE constructor with the name of the file as its argument. For example:
!MyFile = object FILE (‘c:\users\bob\list.txt’)
!MyFile = object FILE (/net/usr/bob/list’)
!MyFile = object FILE (‘%AVEVA_DESIGN_USER%\bob\list.txt’)
At this stage, the file may or may not exist - creating the FILE object does not open or access the file in any way.