I am trying to create a program that will open a directory and then use regular expressions to get PowerPoints names and then create files locally and copy their contents. When I run this, it works, however, when I actually try to open the files, they continue to say that the version is incorrect.
from urllib.request import urlopen import re urlpath = urlopen('http://www.divms.uiowa.edu/~jni/courses/ProgrammignInCobol/presentation/') string = urlpath.read().decode('utf-8') pattern = re.compile('ch[0-9]*.ppt')
davelupt
source share