I'm ashamed to say it but, I/O has allways been my weak side. Which I/O readers and writers read and write 8 bit US ASCII data to files???
posted 13 years ago
I'm not an expert, but here is what I know from the work that I've been trying to do: The basic ASCII Character set has 128 characters. A byte, as defined by Java as a primitive data type, has a size of 8 bits, and it's range is from -128 to 127. Most programs should use readers and writers to read and write textual information. The reason is that they can handle any character in the Unicode character set, whereas the byte streams are limited to ISO-Latin-1 8-bit bytes. Based on the above statement from Sun itself, and based on what I have done if you want to write a simple text file then you want to use the Reader and Writer Objects. For true binary files you want to use InputStream and OutputStream. I hope this helps!!
We make a living by what we get, we make a life by what we give!