how to create a text file in python in a specific directory code example
Example: create text file in directory python linux
import os.path
f = open(os.path.expanduser(os.path.join("~/Desktop",boyka + ".txt")), "a")
import os.path
f = open(os.path.expanduser(os.path.join("~/Desktop",boyka + ".txt")), "a")