Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java, AS400, and C APIs

Status
Not open for further replies.

iSeriesCodePoet

Programmer
Jan 11, 2001
1,373
US
I have a question. I will not be working on this for a while yet, but my interests have been sparked.

I want to delete some files off the IFS on a AS400. I would like to try and use java. The APIs that are used for IO on the IFS is written in C. Can I use these APIs? Or do I have to find Java APIs? Mike Wills
RPG Programmer (but learning Java)

"I am bad at math because God forgot to include math.h into my program!"
 
I have never worked on an AS/400 and I don't know what a IFS is but I think I can answer your question. You should be using just the Java APIs, the JVM will take care of any platform dependencies so you should be fine. Example of deleting a file would be:
Code:
String filename = "C:\test.txt"; // Fully Qualified Path
File file = new File(filename);
file.delete(); // That's it, pretty easy
I could be way off base considering my first sentence, so if this seemed moronic than just ignore me. Wushutwist
 
Mostly I am looking for if I can use C APIs or if it _has_ to be Java. Thanks for the help... Mike Wills
RPG Programmer (but learning Java)

"I am bad at math because God forgot to include math.h into my program!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top