'x' : Exclusive creation mode. Opens for writing only if the file does not exist.
'b' : Binary mode. Use this for reading or writing binary files (e.g., images, PDFs).
't' : Text mode. This is the default mode. Use this for reading or writing text files.
'+' : Updating mode. Open a file for both reading and writing.
'x' : Exclusive creation mode. Opens for writing only if the file does not exist.
'b' : Binary mode. Use this for reading or writing binary files (e.g., images, PDFs).
't' : Text mode. This is the default mode. Use this for reading or writing text files.
'+' : Updating mode. Open a file for both reading and writing.