Now I study input-output, I have encountered such a concept as a catalog, I don’t really understand what it is, can you explain it?
2 answers
In the file system, a directory (or folder) is a place to store files. The File class in Java contains functions for working with directories.
In particular, you can create a directory using the mkdir function; if the operation is successful, then true is returned, and if something went wrong, then false. In this class there are other useful functions for working with a directory-folder.
If the directory is read-only, this means that you can only read from it, that is, you cannot add new files and subdirectories to it, and if it is available for writing, you can add new files and subdirectories (that is, simple directories to which you can add files and subdirectories and so on)
- oneThis is a file marked "directory")) - Oleksiy Mororets
" Directory " is a "folder", it is also a "directory".
In the blue frame - catalogs. In the green - files.
- Could you tell? How to understand: Available for reading and writable (class File)? - user328753 pm