dcsimg
<br>Input a text file?</br>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Huang_Qingyan
Posted On:   Friday, January 18, 2002 01:53 AM


Dear experts,


May I know how to read data from a text file(abc.txt) and print it inside a TextBox on a MIDlet?

I have try DataOInputStream and FileInputStream and there is always error.


Can you guys please kindly teach me how to do it?

Thanks alot,
Franco

Re: <br>Input a text file?</br>

Posted By:   lei_jun  
Posted On:   Sunday, January 20, 2002 04:08 PM

In j2me1.0.3, U can use RandomAccessStream to read & write files.Pls refer to MIDP API for details.
Note: To instantiate a RandomAccessStream, your midlet suite must have DEVICE_CORE_FUNCTION SecureDomain.
About | Sitemap | Contact