>
> To read and write to a file in python is very easy. Find attached a quick
> solution to this.
>
You can place it at the top of the file before you begin coding.
Hope it helps!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

import sys

fPtr=open('A-small.in','r')
sys.stdin=fPtr
f2Ptr=open('A-small-output.out','w')
sys.stdout=f2Ptr
name=raw_input('Enter name: ')
print "Your name is: %s" % (name)
#Provided these files are in the current working directories then this will work

Reply via email to