Can anyone tell me is it right syntax?
For Open:
f = open("file name", file_mode) f is file object
f = open("file.txt", w)
For Close:
f = open("file.txt",'w')
f.close() # close a file
If it does not then tell me the exact syntax of how to create it. I just see this same syntax to the other side here but when I coded it's not working.