help-I am new to python, I have some query could sombody help me out.

S

sumi

I am very new to python , I have small query could some one help me.
every time I get a new load i need to do few things like creating some
dir, changing some file contents and moving some files , i would like
to know if i can write a python script to do all these operation .
 
J

Jorge Godoy

sumi said:
I am very new to python , I have small query could some one help me.
every time I get a new load i need to do few things like creating some
dir, changing some file contents and moving some files , i would like
to know if i can write a python script to do all these operation .

You can... Creating directories, processing file contents and moving files is
not hard with Python (if the "processing" part is simple, then it all becomes
easy). :)

Take a look at the tutorial and the documentation on the website.
 
M

Magnus Lycka

sumi said:
I am very new to python , I have small query could some one help me.
every time I get a new load i need to do few things like creating some
dir, changing some file contents and moving some files , i would like
to know if i can write a python script to do all these operation .

Sure, that's something Python shines at. If you are very new, you
will probably want to look at some general tutorial first.

The specific functions you need are in some standard modules though,
and when you start to feel comfortable with how Python works in
general, read these:

http://docs.python.org/lib/builtin.html
http://docs.python.org/lib/module-os.path.html
http://docs.python.org/lib/module-os.html (file stuff)
http://docs.python.org/lib/module-shutil.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top