J
jimgardener
hi
i am reading a .txt file and depending up on the characters in the
text file i need to build an array of byte values.At the beginning ,i
wouldn't know the size needed to declare the array.So i can't use
byte[] myarray=new byte[somesize] .Also i need to get the order of
elements in the array unchanged.I mean ,while building the array if i
put
myarray[i++]=(byte)0xff;
myarray[i++]=0x7e;
myarray=(byte)0x81;
i need the final array as containing 0xff,0x7e,0x81 and not in any
random order.
Since i can't use a byte[] ,i would like to know what i should use to
hold these byte values
thanks,
jim
i am reading a .txt file and depending up on the characters in the
text file i need to build an array of byte values.At the beginning ,i
wouldn't know the size needed to declare the array.So i can't use
byte[] myarray=new byte[somesize] .Also i need to get the order of
elements in the array unchanged.I mean ,while building the array if i
put
myarray[i++]=(byte)0xff;
myarray[i++]=0x7e;
myarray=(byte)0x81;
i need the final array as containing 0xff,0x7e,0x81 and not in any
random order.
Since i can't use a byte[] ,i would like to know what i should use to
hold these byte values
thanks,
jim