You Are Here:

Community: Developer Discussion Boards

#1 Old Reading Text - 2008-02-03, 23:46

Join Date: Oct 2007
Posts: 31
Location: Brasil
Send a message via MSN to aldosilva
aldosilva
Offline
Registered User
My script works perfectly in Interaticve Console, but when I select Run Script he does not return the lines of the text file. Where Can I say that the error.


f = open("e:\\clientes.txt")
lst = f.readlines()
x = len(lst)

for i in range(x):
a = lst[i].find(";")
n = lst[i][0:a]
c = lst[i][a+1:]
print n,c



Thanks for helping
Reply With Quote

#2 Old Re: Reading Text - 2008-02-04, 08:02

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
I think works for me. It displays what's before ; and what's after it. But I'm not suire that's what you want.
Could you please show me what your "clientes.txt" file contains so that I can try with that?
Reply With Quote

#3 Old Re: Reading Text - 2008-02-04, 13:22

Join Date: Oct 2007
Posts: 31
Location: Brasil
Send a message via MSN to aldosilva
aldosilva
Offline
Registered User
Ok. The data of that file are extracted from MS EXCEL containing: name_contact and name_company


a = lst[i].find(";")
n = lst[i][0:a] # name_contact
c = lst[i][a+1:] # name_company

Tks
Reply With Quote

#4 Old Re: Reading Text - 2008-02-08, 13:19

Join Date: Feb 2008
Posts: 3
ldrolez
Offline
Registered User
Do you have accents in your file ?
On my 6630, print does not like accents...
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
Problem while Reading text file in Nokia3650 lalithunt Mobile Java General 5 2008-07-30 18:19
Reading A Text File Woes _nomad_ General Symbian C++ 1 2005-02-02 11:09
Persist text value of user defined option in Enumerated Text Settings List leethomso Symbian User Interface 0 2004-11-24 19:49
Problem about Reading Chinese Text file? goeast Mobile Java General 0 2002-09-18 04:25
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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ