Great.!!!

Or you can to use arguments. I always recommend to handle exceptions using
try

try:
    f = open(sys.argv[1], 'r')
    ...
    f.close()
except IndexError:
    print 'IndexError: Too few arguments'


--
coto


On Fri, Aug 28, 2009 at 03:21, Ronaldo Osure <[email protected]> wrote:

> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to