create file with os python code example
Example 1: python os make empty file
open(x, 'a').close()
Example 2: create text file in directory python linux
import os.path
f = open(os.path.expanduser(os.path.join("~/Desktop",boyka + ".txt")), "a")
open(x, 'a').close()
import os.path
f = open(os.path.expanduser(os.path.join("~/Desktop",boyka + ".txt")), "a")