This discussion is archived
1 Reply Latest reply: Nov 10, 2011 3:18 AM by 865727 RSS

How to write data to file Java ME cldc 1.1 midp 2.0?

665003 Newbie
Currently Being Moderated
I newly in java me, please help me.

I make project in NetBeans 7.0.1. and use cldc 1.1 midp 2.0.

I want to write data to the file.

How can I do it?

I try to use FileOutputStream. But it don't exists in

NetBeans shows me only this list of classes and interfaces in
ByteArrayInputStream, ByteArrayOutputStream, DataInput, DataInputStream, DataOutput, DataOutputStream, InputStream, InputStreamReader, OutputStream, OutputStreamWriter, PrintStream, Reader, Writer.

Why it so short?

And how I can write data to file?

Data can be array of bytes (byte[]) or Object it better.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points