CS Class 12 Tutorial

What are the advantages of saving data in:
(i) Binary form
(ii) Text form

Binary formIn binary files data is stored in raw i.e. binary form , no delimiter is needed and translation of data is not required. Hence binary files are faster and easier for program to read and write than text files. Text formIn text file data is stored in Unicode or ASCII that can be read […]

What are the advantages of saving data in:
(i) Binary form
(ii) Text form
Read More »

What role is played by modes in file operations? Describe the various file mode constants and their meanings.

Mode determines the type of operation (such as reading data from file, writing data from file, closing file )to be done on data file. It tells how the data file will be used after opening it. File Mode Description Purpose “r” Read only Open file in read only mode. “w” Write only Existing data of

What role is played by modes in file operations? Describe the various file mode constants and their meanings. Read More »

What is the difference between “w” and “a” modes?

“w” and “a” are fie modes which determines the type of operation to be done on data file. Both are used for writing data in a file. The difference between them is- – In “a” mode existing data of file is retained and new data is inserted at the end.– In “w” mode existing data

What is the difference between “w” and “a” modes? Read More »

error: Content is protected !!