The IFSFile class represents an object in the iSeries integrated file system. The methods on IFSFile represent operations that are done on the object as a whole. You can use IFSFileInputStream, IFSFileOutputStream, and IFSRandomAccessFile to read and write to the file. The IFSFile class allows the Java program to do the following:
You can get the list of files in a directory by using either the list() method or the listFiles() method:
Note: Using listFiles() means that the information in the cache may eventually become stale, so you may need to refresh the data by calling listFiles() again.
The following examples show how to use the IFSFile class: