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
24 views
asked Apr 7, 2014 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 Apr 7, 2014 by smith Geek (15,340 points)

Related questions

0 votes
1 answer 29 views
0 votes
1 answer 14 views
14 views asked Jan 25, 2014 by keem Expert (13,240 points)
0 votes
1 answer 32 views
0 votes
1 answer 37 views
37 views asked Apr 8, 2014 by rock Expert (14,990 points)
...