I\'m having trouble creating a directory and then opening/creating/writing into a file in the specified directory. The reason seems unclear to me. I\'m using os.mkdir() and
import os
os.mkdir('directory name') #### this command for creating directory
os.mknod('file name') #### this for creating files
os.system('touch filename') ###this is another method for creating file by using unix commands in os modules