![]() ![]() ![]() Note on the use of IFS classes when accessing QSYS files: Manipulate files in the integrated file system. The Toolbox's IFS classes rely on the File Server to access and To the File Server in IBM i V6R1, and was not PTF'd back to prior IBM i versions. Note: Support for "large files" (files larger than 2 gigabytes) was added Note: Because of a host server restriction, you cannot use this class to Determine when the file was last modified.ĭate date = new Date(file.lastModified()) Determine the parent directory of the file. IFSFile file = new IFSFile(as400, "/Dir/File.txt") Work with /Dir/File.txt on the system named MYSYSTEM. The following example demonstrates the use of IFSFile: IFSFile objects are capable of generating file events that call theįollowing FileListener methods: fileDeleted() and fileModified(). Note that for invalid symbolic links, both isFile and When was the file last changed, is the file hidden, etc.),ĭata from the file, and IFSFileOutputStream or To delete or rename a file, to access theįile's attributes (is the object a file or a directory, Represents an object in the IBM i integrated file system.Īs in java.io.File, IFSFile is designed to work ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |