python lire le fichier ligne par ligne
with open("file.txt") as file_in:
lines = []
for line in file_in:
lines.append(line)
Caleb McNevin
with open("file.txt") as file_in:
lines = []
for line in file_in:
lines.append(line)
file = open(“testfile.txt”,”w”)
file.write(“Hello World”)
file.write(“This is our new text file”)
file.write(“and this is another line.”)
file.write(“Why? Because we can.”)
file.close()
with open("file.txt", "r") as txt_file:
return txt_file.readlines()
f=open("Diabetes.txt",'r')
f.read()
txt = open('FILENAME.txt')
txtread = txt.read()
print(txtread)
print(txt.read())
import os
os.system('filename.extension')