Glenn Holmer wrote:

Anybody know if there's an API in JTOpen to get the timestamp of a
file member (so we can get rid of some old PCML code that calls
into OS/400)?
Open the member as either an IFSFile or an IFSJavaFile and call the
lastModified() method?

Is that really possible (opening a member as an IFSFile)? We couldn't get it to work.
You must use e.g. a SequentialFile to actually read/write from it (which again requires you to learn the record structure first). I have working code, if you need it.

I meant to just call e.g. "new IFSFile" with the full name of the member (/QSYS..../WHATEVER.MBR), and then ask for whatever you need (exists(), lastModified(), etc).

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.