Knowledgebase : Technical Support > API > Client API's/VTL > VTL Client Scripts > File Functions
SYNTAX Public Function RemoveFile(FileName As String) This procedures is used to delete the specified file name . PARAMETERS Key Description  FileName procedures is used to delete the specified file name . RETURN VALUE No return ...
SYNTAX Public Function GetEntry(FileName As String, LineNumber As Long ) As String This function is used to read text from a file by a given the line number. PARAMETERS Key Description  FileName Path and name of a file to be read, v...
SYNTAX Public Function FileWrite(entry as String) as Boolean  This function is used to write an entry data to a specific opened file. PARAMETERS Key Description  entry New data to be written, a value of type String. RETURN VALUE R...
SYNTAX Public Sub CloseFile() This function used to close the open file. You can call it to close an open file after you finish using it. PARAMETERS No patameter. RETURN VALUE No returned value. SAMPLE  Public Sub main()  ' Open or Creat...
SYNTAX Public Sub ClearFile(FileName As String) This function is used to clear the contents for a given file name. PARAMETERS Key Description  FileName Path and name of the file to be cleared, value of type String. RETURN VALUE No...
SYNTAX Public Sub DeleteLine(FileName As String, lineNumber As Long) This function is used to delete a line in a file by a given the line number. PARAMETERS Key Description  FileName Path of a file, value of type String.  lineNum...
SYNTAX Public Function FileExists(FileName As String) As Boolean This function is used to check if a given file exists or not. PARAMETERS Key Description  FileName Path and name of file to be checked if exist or not, value of type St...
SYNTAX Public Function NumberOfLinesInFile(FileName As String) As Integer This function is used to get the number of lines in a specific given file. PARAMETERS Key Description  FileName Path and name of file to get the number of line...
SYNTAX Public Function OpenFile(ByRef FileName As Variant, openType As ENUM_FILE_MODE [http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1922]) As String This function is used to open specific a file to be processed accord...
Help Desk Software by Hybrid Solutions