0% found this document useful (0 votes)
704 views2 pages

PRACTICAL FILE INDEX BinaryFile

The document outlines various tasks involving creating, manipulating, and reading binary and CSV files. It includes instructions to create files to store student, book, and item records with functions to add, display, search, update, and delete records. It also includes tasks to copy records between files and read data from a CSV file.

Uploaded by

Dhruv Bharadwaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
704 views2 pages

PRACTICAL FILE INDEX BinaryFile

The document outlines various tasks involving creating, manipulating, and reading binary and CSV files. It includes instructions to create files to store student, book, and item records with functions to add, display, search, update, and delete records. It also includes tasks to copy records between files and read data from a CSV file.

Uploaded by

Dhruv Bharadwaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Create a Binary file Student.dat with information rollno,name and marks: Instructions for creating a binary file for student records with specific functions to add, delete, and retrieve data.
  • CSV files: Outlines tasks involving creation and reading of CSV files for school data.
  • Create a Binary file Book.dat: Describes the creation of a binary file for books containing specific attributes like name, subject, and price.
  • Create a new file Bank.dat: Details the creation of a binary file for bank data with customer information, using rollno as a reference.
  • Write functions to do the following in Book.dat: Provides functions for updating and retrieving book records from a binary file called Book.dat.

PRACTICAL FILE INDEX

SNO TOPIC DATE SIGNATURE


13. Create a Binary file Student.dat with information rollno,name and
marks. Write functions to do the following:

a) Add records (one record at a time)

b) Display all records.

c) Display records of students having marks>90

14. Write functions to do the following in Student.dat


a) Update marks of a specific student. Search on rollno.
b) Delete record of a specific student.
c) Display all records.
15. Create a Binary file Book.dat(Bookno, Name, Subject,Price). Write
functions to do the following:
a) Add records through a nested list of [Bookno,Name,Subject,Price]

b) Display all records

16. Write functions to do the following in Book.dat


a) Update Price of a particular Book.
b) Show all Books with Price>500.

17. Create a new file Comp.dat from book.dat with all records which
have subject='Computers'

18. Create a Binary file item.dat with dictionary containing itno, name
and price . Write functions to add, display, search and update records.

19. CSV files- create a file and read a csv file. – school bus file

You might also like