Jump to content


Photo

How To Delete File With Python?


  • Please log in to reply
1 reply to this topic

#1 Affini

Affini

    X-S Member

  • Members
  • Pip
  • 107 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 29 March 2006 - 07:48 PM

I've tried os.unlink(file) and also os.system('rm '+file)

neither seem to work.

I need to delete plain ol text files.

thanks!

#2 Rockstarr

Rockstarr

    X-S Member

  • Members
  • Pip
  • 129 posts
  • Location:Leipzig, Germany
  • Xbox Version:v1.6
  • 360 version:unknown

Posted 30 March 2006 - 01:08 AM

Hi.

Did you do "import os"?
Whats the Error Message?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users