Reading does not create file, only writing does:
>>> f = open('newfile.txt','w+')
>>> import os
>>> print([ n for n in os.listdir('.') if n.startswith('new')])
['newfile.txt', 'new_top95_s.txt']
>>>
pyTony
pyMod
6,314 posts since Apr 2010
Reputation Points: 879
Solved Threads: 987
Skill Endorsements: 26
Question Answered as of 1 Year Ago by
snippsat
and
pyTony