4 ответов
+ 3
sololearns system is linux based. Hence, the 'touch' command. Your os my not be a linux distro
+ 2
Slick is there a way to run it in windows?
+ 2
There's no touch in windows but you could use fsutil:
fsutil file createnew filename requiredSize
just sub in the options and use it as a string to feed to os.system()
read about it here: https://www.windows-commandline.com/create-empty-file/
+ 2
On windows you can use "echo > filename to create files using powershell