()
| 12 | |
| 13 | |
| 14 | def 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 | |
| 28 | def b_modify(): |