A Binary file, SONG.DAT has the following structure:
{SNO:[SNAME, SARTIST]}
Where
SNO – Song Number
SNAME – Song Name
SARTIST is Song Artist
Write a user defined function, deleteSong(sno), that accepts sno as parameter and deletes the record from the binary file SONG.DAT, that has the given song number.
Answer:
Answer by student
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.