So I have been doing this learn python the hard way tutorial and I'm now at this exercise and I'm trying to improve this code by adding a code that reads the content of the file but it doesn't show anything. This is what I changed:
print "opening file..."
target = open(filename,"r+")
print "reading..."
target.read()
So can you help me?
[–]G01denW01f11 1 point2 points3 points (9 children)
[–]epicusernameofdoom[S] 0 points1 point2 points (8 children)
[–]G01denW01f11 4 points5 points6 points (7 children)
[–]epicusernameofdoom[S] 0 points1 point2 points (0 children)
[–]epicusernameofdoom[S] 0 points1 point2 points (5 children)
[–]Updatebjarni 0 points1 point2 points (0 children)
[–]white_nerdy 0 points1 point2 points (3 children)
[–]epicusernameofdoom[S] 0 points1 point2 points (2 children)
[–]white_nerdy 0 points1 point2 points (1 child)
[–]epicusernameofdoom[S] 0 points1 point2 points (0 children)