What are the disadvantages to writing data to a text file using tokens and delimiters as opposed to writing an entire object to a file at once?

What will be an ideal response?

Writing to a text file allows you to store data for later use. However, there are two disadvantages to writing to a text file:
* Data in a text file is easily readable in a text editor such as Notepad. Although this feature is useful to developers when they test programs, it is not a very secure way to store data.
* When a record in a data file contains many fields, it is cumbersome to convert each field to text and combine the fields with delimiters before storing the record on a disk. Similarly, when you read a text file, it is somewhat unwieldy to eliminate the delimiters, split the text into tokens, and convert each token to the proper data type. Writing an entire object to a file at once would be more convenient.

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a programmable machine that converts data into information

Fill in the blank(s) with correct word

Computer Science & Information Technology

Analyze the following fragment:

double sum = 0; double d = 0; while (d != 10.0) { d += 0.1; sum += sum + d; } a. The program does not compile because sum and d are declared double, but assigned with integer value 0. b. The program never stops because d is always 0.1 inside the loop. c. The program may not stop because of the phenomenon referred to as numerical inaccuracy for operating with floating-point numbers. d. After the loop, sum is 0 + 0.1 + 0.2 + 0.3 + ... + 1.9

Computer Science & Information Technology