FAQ: File Import Tool


7.1 What does the cache toggle in the File Import Tool do?

The cache toggle causes the data read in by the file import module to be stored in memory once it is read. The next time the file import module is accessed, AVS/Express gets the data from the cache.

If the cache toggle is not set, AVS/Express would have to reread the file, rather than just accessing the cached data. This approach is slower, but uses less memory and may be useful if the amount of data you are reading is very large.

7.2 When a file is opened using a File object (File Import module), when does it get closed?

For example, suppose you create a file import module using the File Import Tool (this module is implemented using File objects). You use this file import module and the referenced file is opened. When is this file closed?

The file is closed when the File import object is deleted.

7.3 What if the amount of data you specify to read using the File Import Tool is greater than the amount of data stored in the file?

That is, what happens if you tell the File Import Tool to read past EOF?

When you try to access the output array, the read is attempted and fails, so the array is not valid. An error will be returned when you try to access it.