Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

open file python

# Open function to open the file "MyFile1.txt" 
# (same directory) in append mode and
file1 = open("MyFile.txt","a")
  
# store its reference in the variable file1 
# and "MyFile2.txt" in D:Text in file2
file2 = open(r"D:TextMyFile2.txt","w+")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #open #file #python
ADD COMMENT
Topic
Name
3+7 =