You Are Here:

Community: Developer Discussion Boards

#1 Old Post Delete file from mobile drive - 2007-11-13, 14:38

Join Date: Nov 2007
Posts: 1
chanchad_tejas
Offline
Registered User
I want to delete the file physically from the mobile drive. This is just normal text file that i have created. I used this file temporary in my program

a=u'c:\\w_test.txt'
file = open(a,'w')
file.write('Writing test')
file.close()
# here i want to delete this w_test.txt file from c:\\

I already used del,clear and remove() for it but it is not work. I am used 2nd Edi. FP3.
Reply With Quote

#2 Old Re: Delete file from mobile drive - 2007-11-13, 16:02

Join Date: Oct 2007
Posts: 67
nlsp
Offline
Regular Contributor
it's standard python (see http://www.python.org).

Code:
import os
os.unlink("c:\\w_test.txt")
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
Error with makesis.exe and creating the .pkg file gramya87 Symbian Tools & SDKs 7 2007-10-10 14:53
Help needed with a 3gp file... joedoe_1981 Streaming and Video 0 2007-07-18 19:58
erorr in file transfer from pc to mobile over bluetooth using serial port profile danishsk Mobile Java General 2 2007-04-12 19:05
can not successfully link any sample using .NET lobotomat Symbian Tools & SDKs 2 2002-08-20 01:29

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