File class in Java
The File class represents a file or directory path name in Java. Because file and directory names differ between platforms, naming them with a simple string is insufficient. The File class is used to create files and directories, search for files, delete files, and so on. Fields of File Class Modifier Type Field Description static String pathSeparator It is a path-separator character that is system-dependent and is represented as a string for convenience. static char pathSeparatorChar It is a path-separator character that is system-dependent. static […]
September 7, 2022 | Java | No comments