I want to read an entire file into a byte array without newline or carriage return. I get 13,10 also in the byte array. Is there a way to read the entire file without newline or carriage return. I have used the below code:
InputStream in = new FileInputStream(file);
numBytesRead=in.read(result, offset, noBytes);
Is there any other way?