OpenAsFile

The OpenAsFile() function opens a file, and how do we want our file to be opened.

Syntax :

OpenAsFile(FileData,Extension)
Parameters Description
FileData The Path and name of the file.
Extension Format in which we want out file to be opened.(eg:- jpeg,png,doc,docx, txt, etc.)

Example :

dOpenAsFile = OpenAsFile(C:\Documents\DGSTesting\Test.txt,"docx")
DEBUG(dOpenAsFile)

Result :

dOpenAsFile 
= Test.docx