Define a read-only file and why some files use the read-only attribute!
A read-only file
is any file with the "Read-only file" attribute activated. A file that is read-only can be opened and viewed like any other file, but writing to or changing the file is not possible. Simply put, the file can only be read and cannot be written to.
Why read-only file?
A file that is marked as read-only usually means that the file should not be changed, or that great care should be taken before making changes to it.
Read-only is a file attribute with which a user can only view one file, which limits writing to the file. If you set a file to status read-only, it can still be opened and even read. However, changes such as deleting, overwriting, editing, or changing names are not possible. This is often used for permission and security purposes to prevent unauthorized users from doing so, or accidentally or deliberately making changes to certain files, no matter which Windows 10 and 11 writing program it is!