Reading a text file in archive in jar
Hi,
I am unable to read a text file in my jar archive.
Example code:
try
{
InputConnection con =
(InputConnection) Connector.open("file://text/info.txt", Connector.READ);
InputStream in = con.openInputStream();
StringBuffer buf = new StringBuffer();
int ch;
while((ch = in.read()) != -1 )
{
buf.append((char) ch);
}
in.close();
form.append(buf.toString());
} catch (Exception e) { e.printStackTrace(); }
Any ideas how I can do that?
Thanks.

