My assignment (URLyBird) specifies to have
String array to be returned for read. I am searching for a method to replace readByte:byte with something like readString(offset, length):String.
DataInputStream is what I looked so far.
I would like to know any of the
java library addresses this and provide a method like readString.
I understand readUTF is supposed to function so. But an offset and length cannot be specified. I will love to use readUTF. I just need to know how to tame it.
Please let me know your thoughts. I don't feel reading bytes and concatenating it to String is a good idea if a library function already exists.