You Are Here:

Community: Developer Discussion Boards

#1 Old text file - 2007-02-12, 09:58

Join Date: Apr 2006
Posts: 9
wjjgwy
Offline
Registered User
Hi
Everybody I want to read data from a text file use python, but I don't how to do it. The data in the text file is "11111111" Who Can help me.

Thanks very much
Reply With Quote

#2 Old Re: text file - 2007-02-12, 13:05

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi wjjgwy,

Try this:
Code:
data = open("filePath", 'r').read()
print data
LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: text file - 2007-02-13, 05:23

Join Date: Apr 2006
Posts: 9
wjjgwy
Offline
Registered User
Thanks very much I will try to it
Reply With Quote

#4 Old Re: text file - 2007-02-14, 07:16

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by lfd
Hi wjjgwy,

Try this:
Code:
data = open("filePath", 'r').read()
print data
LFD

i also need the same thing. but he just want to read the text file and only 111111. i want to read the whole data content like name,address and some more infomation. i also want to modify it and send that updated text file to the PC using bluetooth communication is that possible. can you plz help me....
Reply With Quote

#5 Old Re: text file - 2007-02-14, 07:18

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by lfd
Hi wjjgwy,

Try this:
Code:
data = open("filePath", 'r').read()
print data
LFD
hello LFD,
i also need the same thing as mentioned by wjjgwy. but he just wants to read the text file and data is only 111111. i want to read the whole data content like name,address and some more infomation. i also want to modify it and send that updated text file to the PC using bluetooth communication is that possible. can you plz help me....
Reply With Quote

#6 Old Re: text file - 2007-02-14, 07:20

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hello wjjgxy,
have you the code, is it serving your purpose or not.

In that again you give print data. it means it will print that data on the python screen, but i want to know that i am running this program by not using python.i creating .sis file by using py2sis and so in this if i give print data, so where i means at which path this data will get printed.
Last edited by sagars : 2007-02-14 at 07:34.
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
[moved] Theme Studio Error TalJ Themes/Carbide.ui 2 2009-09-06 04:39
How to create a Text file in Nokia 6630? rajneesh103 Mobile Java General 3 2006-10-28 20:40
Series 60 SDK Appwizard on windows xp moonjoor Symbian Tools & SDKs 15 2003-12-24 11:22
nokia 7210 modem via IR doesn't work ! oussamaaiadi PC Suite API and PC Connectivity SDK 1 2003-03-06 11:46
reading and displaying text file contents cvz General Symbian C++ 0 2002-07-24 17:11

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