|
Purpose | With OpenFile you can open a file and then read the file with ReadFile or write records to file with AppendFile. |
Example | OpenFile “X:GuiXTFiles\MatDes.txt”
The file is opened in read-only mode. OpenFile “X:GuiXTFiles\MatDes.txt” -Output Delimiter=“;” |
Format | OpenFile “filename”
Additional options: -Output The file is deleted, if it exists, and you can now insert new records into the file with AppendFile. -Append The file is not deleted and you can append new records with AppendFile. -UTF8 In conjunction with -Output: generates a UTF8-header before the first record is written -nocache Bypasses the GuiXT file cache when the file is read. Otherwise files from SAP Web Repository and files with UNC notation “\\server\…” are read from GuiXT cache if the cache option is ticked in GuiXT profile. Delimiter=“x“ The delimiter that you specify here, e.g. “;”, will be used in ReadFile and AppendFile in order to separate the fields from each other in a record. Default delimiter is the tab. |
Tips & Tricks |
|