C h a p r 2 File Handling in Python

Writing String to Binary file • To store string in binary file, we must convert it to binary format either by prefixing the string with ‘b’ or using the encode() function. • For e.g. VINOD KUMAR VERMA,PGT(CS), KV OEF KANPUR & SACHIN BHARDWAJ, PGT(CS), … ................
................