Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
create text file in directory python linux
Ronald Vyhmeister
Programming language:
Python
2021-06-18 22:02:12
0
Q:
create text file in directory python linux
Redska
Code:
Python
2021-07-19 04:38:44
import os.path f = open(os.path.expanduser(os.path.join("~/Desktop",boyka + ".txt")), "a")
1
Tags
python
file
text
linux
create
text file
Related
python replace text in file
how to access a txt file through os library in python
python open each file in directory
allow user to input text and create a file with that name in python
how to open a text file in python
python find specific file in directory
get file names in folder python
how to make a text file in python
path to create a text file in python
New to Communities?
Join the community