I need to read a text file into a byte array. How could I do this. For example I have a byte array called buffer, I have opened a InputStream "is" and I am reading it in one byte at a time. Now how do I append or add the int "c" into the byte array called "buffer"? Any better ideas would be great. byte [] buffer; int c; while ( c = is.read() != -1 )) { ??? } thanks, Dean