Hi,
I am fairly new to python and i am looking for a python script to
download file(latest build) from the server. But, the build name changes
daily. For Ex: today the build URL will be
"http://mybuilds/myapp_1234.exe"; and tomorrow it will be
"http://myserver/mybuilds/myapp_3456.exe";. So i ne
Try this:
import shutil,os
file1 = open('a.dat','r') #opens file for reading
for line in file1:
print line
##old_name = line[0:len(line)-1] #gets rid of "\n" suffix
##print old_name
line.strip() #gets rid of "\n" suffix
print line
os.rename('b.dat',line) #renames file
file1.cl