Computer Science
Assertion (A): Text file stores information in the ASCII or Unicode format/characters.
Reasoning (R): In a text file, there is no delimiter for a line.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Answer
A is true but R is false.
Explanation
In a text file, information is stored in the form of ASCII or Unicode characters. Each line in a text file is terminated by a special character known as End of Line (EOL), and by default, this EOL character is the newline character (\n), which serves as the delimiter for lines in text files.
Related Questions
Assertion (A): CSV stands for Comma Separated Values.
Reasoning (R): CSV files are common file format for transferring and storing data.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Assertion. CSV (Comma Separated Values) is a file format for data storage which looks like a text file.
Reason. The information is organized with one record on each line and each field is separated by comma.
What is the difference between "w" and "a" modes ?
What is the significance of a file-object ?