Conversation started Sep 12, 2012 at 22:38.
Sep 12, 2012 22:38
"to create a file-input stream , use ifstream. " Shouldn't it be "to create a file-input stream object?"
@Insilico er, yes. I meant '\0'
@MooingDuck Oh okay that makes way more sense.
@MohamedAhmedNabil "object" is redundant in that case
@Insilico sorry about that
@MooingDuck why?
@MohamedAhmedNabil: a stream is an object
Sep 12, 2012 22:39
So a \0 is not encoded by U+0000 in Java's modified UTF-8.
@Insilico right
So Java strings allow for embedded '\0's?
UTF-8 (UCS Transformation Format8-bit) is a variable-width encoding that can represent every character in the Unicode character set. It was designed for backward compatibility with ASCII and to avoid the complications of endianness and byte order marks in UTF-16 and UTF-32. UTF-8 has become the dominant character encoding for the World-Wide Web, accounting for more than half of all Web pages. The Internet Engineering Task Force (IETF) requires all Internet protocols to identify the encoding used for character data, and the supported character encodings must include UTF-8. The Internet Mail...
@netcoder the object represents the stream, but the stream itself is a stream. right?
@Insilico yup
@MohamedAhmedNabil therefore if you make a stream object you've also made a stream
Sep 12, 2012 22:41
@MooingDuck aha
@MohamedAhmedNabil the concepts are basically one and the same
@MooingDuck What use does Java have for embedded '\0's?
@MooingDuck gotcha
 
Conversation ended Sep 12, 2012 at 22:42.