IFSFile class

The IFSFile class represents an object in the AS/400 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:

Begin changeYou 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 eventually become sstale, so you may need to refresh the data.End change

Examples

The following examples show how to use the IFSFile class: