View Single Post
Old 11-23-2011, 01:48 AM   #5 (permalink)
bankkab
New Member
 
Join Date: Nov 2011
Model: 7100T
PIN: N/A
Carrier: Bike
Posts: 13
Post Thanks: 5
Thanked 0 Times in 0 Posts
Default Re: Read String in File text.

Quote:
Originally Posted by berryapp View Post
String = new String(data.); // need to use String
try {
fconn = (FileConnection) Connector.open("file:///D:/IP.txt", Connector.READ);
//is = fconn.openDataInputStream();
// data = IOUtilities.streamToBytes(is);
InputStream in = fconn.openInputStream();
byte[] data = IOUtilities.streamToBytes(in);
String sss = new String(data);
oxi = new LabelField(sss);
}



catch (IOException e)
{
System.out.println(e.getMessage());
}
add(oxi);


Build Complete but....In my App is Error !

Helpme please
Offline   Reply With Quote