Initial commit
This commit is contained in:
7
sidan_133_ex1.py
Normal file
7
sidan_133_ex1.py
Normal file
@@ -0,0 +1,7 @@
|
||||
fil = open("filtest.txt")
|
||||
print (fil.read())
|
||||
print ("\nFilens namn:", fil.name)
|
||||
print ("Filens läge:", fil.mode)
|
||||
print ("Är filen stängd?", fil.closed)
|
||||
fil.close()
|
||||
print ("Är filen stängd?", fil.closed)
|
||||
Reference in New Issue
Block a user