User`s guide
uFileInfo
152 Sybase IQ ETL 4.1
File functions
uFileInfo
Description Returns information about a file. When uFileInfo is set to EXISTS the function
returns the whole path to the file if it exists or an empty string if it does not
exist.
uFileInfo is set to SIZE the size of the file is returned or an empty string
if the file does not exist.
Note Be aware that you have to double the backslashes in JavaScript
environments because the backslash is used as escape sequence.
Syntax string uFileInfo (file [, infotype])
Parameters
string file
The file to investigate.
string infotype (optional)
The type of information to retrieve. The default is
EXISTS.
Examples To retrieve file information in JavaScript Calculator:
uFileRead("C:\\windows\\notepad.exe") // returns
C:\windows\notepad.exe.
uFileRead("C:\\win\\notepad.exe") // returns
C:\windows\notepad.exe.
uFileRead("C:\\windows\\notepad.exe", “SIZE”) //
returns 68608.
uFileRead
Description Returns the content of a file.
Syntax string uFileRead(URL [, bytes] [, offset] [, encoding])
Parameters
string URL
The URL specifying the source to read