0
Writing file
Is it possible to write in 2 text file at the same time? If yes, how?
8 Respostas
+ 1
share your code to get further help ^^
+ 1
# just use two (or more) file handlers:
file0 = open('file0.txt','w')
file1 = open('file1.txt','r')
file2 = open('file2.txt','r')
# do stuff with files...
file0.close()
file1.close()
file2.close()
# or even:
with open('file0.txt') as file0:
with open('file1.txt') as file1:
with open('file2.txt') as file2:
# do stuff with files...
0
Your question lack some necessary details :-
1) language you want to use ?
2) what do you exactly mean by "at the same time" ?
3) what kind of files are these ?
0
in python.
0
can I “merge”, create a new text file by using 2 text file as arguments?
0
Well... technically yes
0
how
0
thanks, but it’s not working