Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Tutorials
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Tutorials Basic4ppc tutorials


Text Files


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-17-2008, 07:14 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 918
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, 07: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, 06: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, 06:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
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.
__________________
Basic4ppc reference list
Reply With Quote
  #15 (permalink)  
Old 04-24-2009, 08: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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 11:55 PM.


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