InterviewSolution
| 1. |
What Are Text And Binary Modes? |
|
Answer» Streams can be classified into TWO types: text streams and binary streams. The text streams are INTERPRETED as per the ASCII values starting from 0 to 255. Binary streams are RAW bytes which C can't interpret, but APPLICATION has to interpret it itself. Text modes are used to handle, generally text file where as binary modes can be used for all files. But they won't give you the content of a file, rather they will give you the file properties and content in raw binary format. Streams can be classified into two types: text streams and binary streams. The text streams are interpreted as per the ASCII values starting from 0 to 255. Binary streams are raw bytes which C can't interpret, but application has to interpret it itself. Text modes are used to handle, generally text file where as binary modes can be used for all files. But they won't give you the content of a file, rather they will give you the file properties and content in raw binary format. |
|