C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What is the difference between text and binary modes?

0 votes
26 views
asked by rock Expert (14,990 points)

1 Answer

0 votes
Streams can be classified into two types: text streams and binary streams. Text streams are interpreted, with a maximum length of 255 characters. With text streams, carriage return/line feed combinations are translated to the newline n character and vice versa. Binary streams are uninterrupted and are treated one byte at a time with no translation of characters. Typically, a text stream would be used for reading and writing standard text files, printing output to the screen or printer, or receiving input from the keyboard. A binary text stream would typically be used for reading and writing binary files such as graphics or word processing documents, reading mouse input, or reading and writing to the modem.
answered by smith Geek (15,340 points)

Related questions

0 votes
1 answer 29 views
0 votes
1 answer 15 views
15 views asked by keem Expert (13,240 points)
0 votes
1 answer 35 views
0 votes
1 answer 40 views
...