Skip to main content

How to use File Connection APIs in CDC Applications?

2 replies [Last post]
murali_reddy219
Offline
Joined: 2007-10-25

Hi,

I am writing a CDC Application using sun's CDC Tool Kit.In that I have a situation where I need to use File Connection APIs. But there is no File Connection API in the CDCTK library.
My problem is , i want to create a file and will use OpenoutputStream.Actually if we use JSR75, we can create in CLDC.

How can we void this situation?

Thanks& Regards
Muralidhar

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
power_user
Offline
Joined: 2006-12-18

You can even use java.io.File package for file manipulation.

terrencebarr
Offline
Joined: 2004-03-04

Sorry for the slow reply, I'm recovering from JavaOne ...

I haven't used the CDC toolkit lately but you should be able to add the FileConnection API as an optional package. See

http://developers.sun.com/mobility/apis/articles/fileconnection/

Hope this helps,

-- Terrence