Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Tutorials Basic4ppc tutorials

Text Files

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-17-2008, 08:14 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi AppsByAaron

please look at the sample above (TextFiles.zip).
LstData is a listbox on form1.


specci48
Reply With Quote
  #12 (permalink)  
Old 03-17-2008, 08:15 PM
Newbie
 
Join Date: Mar 2008
Posts: 2
Default

nevermind. I'm an idiot. Got it all figured out.
Reply With Quote
  #13 (permalink)  
Old 04-21-2009, 07:24 PM
Newbie
 
Join Date: May 2008
Posts: 4
Default Changing text file data

This has got me up to speed using text files, ta very to you all.

Using other programs I can change, let's say one line of a data file without overwriting the whole file.

I'm jiggered if I can fathom out how to do it in B4PPC.

Any thoughts, about this, most welcome.

Regards,

KevG
Reply With Quote
  #14 (permalink)  
Old 04-24-2009, 07:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can open a file in random access mode and change only parts of it. However as text files use Unicode encoding it will be very hard to find the right position.
I recommend you to open the file, read the lines one by one or everything at once. Edit the text and save it to a new file.
__________________
Basic4android documentation
Reply With Quote
  #15 (permalink)  
Old 04-24-2009, 09:26 AM
Newbie
 
Join Date: May 2008
Posts: 4
Default

Thanks for that Erel,

Since posting the thread I've come to the same conclusion.
The Table / database / CSV file option seems to work and does just the job.

Ta,

KevG
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching all text files in a directory tsteward Questions (Windows Mobile) 5 01-03-2009 05:08 PM
Downloadfile and text files N1c0_ds Questions (Windows Mobile) 3 10-17-2008 03:55 AM
Coverting text files with binary file page code functionality kolbe Code Samples & Tips 1 06-21-2008 06:06 PM
Text editor for INI files Softselect Questions (Windows Mobile) 2 11-15-2007 07:50 AM
Dividing the code into text files... Cableguy Questions (Windows Mobile) 5 05-21-2007 04:21 PM


All times are GMT. The time now is 08:03 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0