Regarding copying and pasting a folder/File

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

Regarding copying and pasting a folder/File

Postby uvrpavan » Tue Nov 27, 2007 11:21 am

Hi,

can u tell me how to copy/paste a folder/File from one folder to other?
Is there any method or api there in j2me?
or else how can i do that?
uvrpavan
 
Posts: 19
Joined: Sun Feb 11, 2007 8:52 am

Re: Regarding copying and pasting a folder/File

Postby DevelopmentTeam » Tue Nov 27, 2007 11:42 am

you have to use fileconnection API to read write things from the file system. And supports only in fewer handsets which support this API.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Re: Regarding copying and pasting a folder/File

Postby uvrpavan » Tue Nov 27, 2007 12:00 pm

I studied the api jsr82.but i didn't get any direct methods to copy/cut/paste a file from one to other....
can u tell me the process for this?
uvrpavan
 
Posts: 19
Joined: Sun Feb 11, 2007 8:52 am

Re: Regarding copying and pasting a folder/File

Postby DevelopmentTeam » Wed Nov 28, 2007 3:02 am

You have to use read/write/delete instead of cut/copy/paste. You have to read it to a buffer and then write to another location and if needed delete the old file. I dont think there will be an option to cut/copy/paste.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India


Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 1 guest

cron