[Tutor] small program, but I'm very confused

Melissa K. Surprenant msurprenant@siumed.edu
Tue Nov 5 15:59:02 2002


This is a multi-part message in MIME format.
--------------F11776759AD7A627AD23E4B5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Yes, that part will run (I pasted it into a separate file).  I'm telnetting
into a unix machine, so I changed the file path to the following:

f=open('/tmp/listofusers', 'w')
f=open('/tmp/listofusers, 'r+')
f.write('\2\n')

Bob Gailer wrote:

> At 01:50 PM 11/5/2002 -0600, Melissa K. Surprenant wrote:
>
> >When I copied the code, I must have made a mistake - both lines are
> >indented 5 spaces in
> >the actual program.  I'm sorry.  I just looked it over, and everything
> >else copied
> >correctly.
>
> I abstracted, altered paths for windows, and tested (copied/pasted from a
> REAL session):
>  >>> f=open('c:\\listofusers', 'w')
>  >>> f=open('c:\\listofusers', 'r+')
>  >>> f.write('\2\n')
>  >>>
> No problem.
> Can you get that much to run?
>
> Bob Gailer
> 170 Forsythe Rd
> Nederland CO 80466
> 303-442-2625

--
There are only 10 types of people in this world...those who understand
binary, and those who don't.


--------------F11776759AD7A627AD23E4B5
Content-Type: text/x-vcard; charset=us-ascii;
 name="msurprenant.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Melissa K. Surprenant
Content-Disposition: attachment;
 filename="msurprenant.vcf"

begin:vcard 
n:Surprenant;Melissa
tel;pager:217-467-3807
tel;fax:217-545-0192
tel;work:217-545-2132
x-mozilla-html:FALSE
org:SIU School of Medicine;Education & Curriculum
adr:;;801 N. Rutledge;Springfield;IL;62794-9622;United States
version:2.1
email;internet:msurprenant@siumed.edu
fn:Melissa K. Surprenant
end:vcard

--------------F11776759AD7A627AD23E4B5--