Reputation: 3819
i need to perform some operations on files - rename, delete and etc.
what is better? use cmd commands or use java.io.File methods?
thanks.
Upvotes: 0
Views: 298
Reputation: 11108
After lots of comments I catch the real question. So my answer is:
Of course it is better to use java feauters, because:
Upvotes: 0
Reputation: 31467
Normally it's not a good idea to depend on OS specific things in a platform independent environment, not mentioning the speed which would be much slower with the local commands.
I would stick with the Java implementations, if it's possible with them.
Upvotes: 1