Skip to content

Instantly share code, notes, and snippets.

@milin
Created February 22, 2010 05:33
Show Gist options
  • Save milin/310826 to your computer and use it in GitHub Desktop.
Save milin/310826 to your computer and use it in GitHub Desktop.
path = raw_input()
f = open(path) # open the file from the given path using open
temp = "" #let temp be an empty string
for line in f: # add the contents of the file in temp
temp += line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment