Next Topic

Previous Topic

Book Contents

TLuaFile

The class provides basic file handling routines and support both binary and text files. All file operations are relative to the context that the script is executed in. For example if the script is executed by an object with the address \\myserver the file path, c:\test.txt, will be translated to \\myserver\C$\test.txt.

There is one exception to this and it's when the class is initialized with true, then all file operations are relative the Network Monitor host machine. For more information, see sample script three in this class.

In This Chapter

Sample Scripts: TLuaFile

Close

CopyFile

CreateDirectory

DeleteDirectory

DeleteFile

DoesFileExist

GetDirectoryList

GetFileAccessedTime

GetFileCreatedTime

GetFileList

GetFileModifiedTime

GetFileSize

GetFileSizeMB

GetFileStatus

MoveFile

Open

Read

ReadData

RenameFile

SeekFromCurrent

SeekFromEnd

SeekFromStart

Write