La clase File (java.io) y la API Path moderna (java.nio.file) proporcionan herramientas para las operaciones del sistema de archivos: crear, eliminar y cambiar el nombre de archivos y directorios, leer metadatos y recorrer árboles de directorios. El archivo es la antigua API (Java 1.0); Path es la API moderna y preferida (Java 7+).

La clase de archivo: operaciones básicas
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.