BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 02-23-2007, 02:17 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: India
Model: 8700g
Carrier: Airtel
Posts: 117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question can we create a simple text file on BB??

Please Login to Remove!

Can we create a simple text file on the BB and then have our application access it?
Offline  
Old 02-23-2007, 04:28 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

on models with the 4.2 api yes as they have a filesystem, ie. the pearl and 8800.

do you need a txt file or just somewhere to store offline data? if you just need offline storage look into using the PersistentObject
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 02-23-2007, 05:38 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Nov 2006
Model: 8100
Carrier: Airtel
Posts: 335
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

as said by jfisher, yes and we already have a program doing it - multiPlay txtNotes
__________________
Dollars 5 Complete - Making Mobile Complete
Offline  
Old 02-23-2007, 05:49 AM   #4 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

try something like this:

FileConnection filecon = (FileConnection)Connector.open("file:///SDCard/" + filename);

if(!filecon.exists()) {
filecon.create();
OutputStream out = filecon.openOutputStream();
out.write("mytextString");
out.close();
filecon.close();
}

if you need this in your project send me a pm and i'll email you the source code for this app: link>> txt notes app
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Leeds & Northrop 4745 Resistance Box Potentiometer
$95.0
Leeds & Northrop 4745  Resistance Box Potentiometer picture5Pcs Ribbed Grip 4mm Split Shaft Potentiometer Control Knobs Black AWZY
$1.13
5Pcs Ribbed Grip 4mm Split Shaft Potentiometer Control Knobs Black AWZY pictureUxcell Single Linear Taper Rotary Audio B Type Potentiometer Volume Control 5pc
$7.99
Uxcell Single Linear Taper Rotary Audio B Type Potentiometer Volume Control 5pc picturePot potentiometer Dual ; 500 Ohm / 5K ohm
$5.0
Pot potentiometer Dual ; 500 Ohm / 5K ohm picture10pcs Rotary B-Type 1K-220K Ohm Linear Potentiometer Assortment Kit 1/2W
$10.5
10pcs Rotary B-Type 1K-220K Ohm Linear Potentiometer Assortment Kit 1/2W picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.