MCPcopy Index your code
hub / github.com/geekcomputers/Python / b_read

Function b_read

file_handle/File handle binary/delete.py:14–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def b_read():
15 # Opening a file & loading it
16 if not os.path.exists(student_record):
17 logging.warning("File not found")
18 return
19
20 with open(student_record, "rb") as F:
21 student = pickle.load(F)
22 logging.info("File opened successfully")
23 logging.info("Records in the file are:")
24 for i in student:
25 logging.info(i)
26
27
28def b_modify():

Callers 1

delete.pyFile · 0.70

Calls 3

warningMethod · 0.80
infoMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected