this is my code
---
byte[] data = null;
FileConnection fconn = null;
DataInputStream is = null;
try {
fconn = (FileConnection) Connector.open("file:///D:/IP.txt", Connector.READ);
is = fconn.openDataInputStream();
data = IOUtilities.streamToBytes(is);
oxi = new LabelField(data);
add(oxi);
---
Construct a new String by converting the specified array of bytes using the platform's default character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the byte array.
Parameters:
bytes - The bytes to be converted into characters
Since:
JDK1.1