By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

How to work with files and directories

Atran
100+
P: 319
Hello, I want open file or delete file or create directory.......... using python.
Thanks.
May 30 '07 #1
Share this Question
Share on Google+
1 Reply


ilikepython
Expert 100+
P: 844
Hello, I want open file or delete file or create directory.......... using python.
Thanks.
You can open a file by doing this:
Expand|Select|Wrap|Line Numbers
  1. myfile = open("C:\\myfile.txt")
  2.  
For other stuff having to do with files and directories try the os module .
May 30 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.