You Are Here:

Community: Developer Discussion Boards

#1 Old How to work with the *.txt files in Python? - 2006-06-29, 06:33

Join Date: Jun 2006
Posts: 6
dboyko
Offline
Registered User
Hi ManZ!
Pls , help me how can I do main operations with *.txt files in Python fo S60?
Like this: create, open, search in plain file with regular expression and etc.
Can u give me some examples?
Reply With Quote

#2 Old Re: How to work with the *.txt files in Python? - 2006-07-03, 09:54

Join Date: Nov 2004
Posts: 105
rexwal
Offline
Regular Contributor
import os

filepath = u'e:\\data.txt'
f = open(filepath,'a');
f.write(u"<Hello world");
f.close()
Reply With Quote

#3 Old Re: How to work with the *.txt files in Python? - 2006-07-06, 14:06

Join Date: May 2006
Posts: 74
chetbox's Avatar
chetbox
Offline
Regular Contributor
Quote:
Originally Posted by dboyko
Hi ManZ!
Pls , help me how can I do main operations with *.txt files in Python fo S60?
Like this: create, open, search in plain file with regular expression and etc.
Can u give me some examples?
Hey!

I've been developing a text editor known as EasyEdit.
It's pretty usable, and you can check out the source code to give you an idea of how text manipulation is done in PyS60. It's over at
http://chetbox.googlepages.com/s60_texteditor
(Some of the code isn't particularly clean, but it works fairly well )


chetbox.googlepages.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
wmls files work on toolkit, but not on other emulators or on the server Nokia_Archived Browsing and Mark-ups 2 2007-01-31 11:22
Python C++ Extension with Callback crashing diggerdeep Python 2 2005-11-10 17:33
Caching of WML-SCRIPT does not work properly on 6210 HarryD General Browsing 2 2005-01-09 15:40
Creating very big files raipdly pink_lemonade General Symbian C++ 2 2004-04-06 10:21
Sending several files without using SIS stopin General Symbian C++ 0 2003-07-10 17:32

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia