Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 18
Registered: ‎09-18-2013
My Device: developer
My Carrier: developer

File Information

Hi all,

 

 

I want to get file information like its name,type,size,etc and I have path of it and when I use File() it is showing that in my java.io.*; there is no file class.

 

 

Thankz

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: File Information

You need to stick to APIs available on the BlackBerry - look at the FileConnection API. 

Developer
Posts: 152
Registered: ‎12-03-2012
My Device: PP
My Carrier: base(kpn)/BE, t-mobile/PL

Re: File Information

http://stackoverflow.com/questions/4195563/file-handling-in-blackberry

 

--
Regards,
Pawel Gorny
my apps: http://pawelgorny.com/
PGpgp, Your Reply, Anagrammatist, Texas Hold'em Odds Calculator, Contacts to CSV
If your issue has been solved, please resolve it by marking "Accept as Solution"
Developer
Posts: 151
Registered: ‎09-28-2012
My Device: Blackberry Developer
My Carrier: Aircel

Re: File Information

Try This..

 

http://docs.blackberry.com/en/developers/deliverables/17952/Writing_text_to_a_file_1554348_11.jsp


----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.