for x in range(0, 10000) file = open('file_' + str(x) + '.txt', 'w') file.write('some text\n') file.close()
file = open('file_0.txt', 'w') for x in range(0, 10000) file.write('some text\n') <magic code to change file location so I don't need to create a new file object> file.close()
|Windows Command Line in Python||16||60|
|Optimum versions of Selenium Webdriver with Python On Windows 7||1||80|
|Powershell Script need assistance to make some changes||4||59|
|how to pick specific file from ftp||13||39|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!