Computer Science, asked by karan2183, 1 year ago

explain binary file [ method of opening a binary file ]

Answers

Answered by smartykrishna30
1

A binary file is a computer file that is not a text file.[1] The term "binary file" is often used as a term meaning "non-text file".[2] Many binary file formats contain parts that can be interpreted as text; for example, some computer document files containing formatted text, such as older Microsoft Word document files, contain the text of the document but also contain formatting information in binary form.[2]

Answered by allysia
0

Answer:

Using python binary can be opened for performing functions in a file object  as:

file_object=open("file_name.dat", "br") # opening file in binary mode.

Explanation:

You can read it by reading a reader object here using load module in pickle  module.

reader_object=pickle.load(file_object)

For writing you gotta use dump method.

pickle.load(data_to_enter, file_object)

Similar questions