Video:
Innhold:
Grunnleggende filoperasjoner:
fil1 = open("filnavn.txt", "w")
fil1.write("Bare bra")
fil1.close()
fil1 = open("filnavn.txt", "a")
fil1.write(" - ikke sant")
fil1.close()
fil1 = open("filnavn.txt", "r")
tekst1 = fil1.read()
print(tekst1)
# Bare bra - ikke sant
Det er noe mer info i filmen som er utelatt.
