Knowledgebase : Technical Support > API > Client API's/VTL > VTL Client Scripts > File Functions
SYNTAX  Public Function RemoveFile(FileName As String)  Parameters This procedures is used to delete the specified file name . Key Description  FileName procedures is used to delete the specified file name . RETURN VALUE No return valu...
SYNTAX  Public Function GetEntry(FileName As String, LineNumber As Long ) As String DESCRIPTION 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 b...
SYNTAX  Public Function FileWrite(entry as String) as Boolean  DESCRIPTION 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 ...
SYNTAX Public Sub CloseFile() DESCRIPTION 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 Cr...
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.  lineNumber ...
SYNTAX  Public Function FileExists(FileName As String) As Boolean DESCRIPTION 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 o...
SYNTAX  Public Function NumberOfLinesInFile(FileName As String) As Integer DESCRIPTION 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 numbe...
SYNTAX  Public Function OpenFile(ByRef FileName As Variant, openType As ENUM_FILE_MODE) As String DESCRIPTION This function is used to open specific a file to be processed according to open type value.  PARAMETERS Key Description  FileName ...
Help Desk Software by Hybrid Solutions