[Tutor] (no subject)
wong chow cheok
wong_chow_cheok@hotmail.com
Wed, 11 Apr 2001 18:03:14 +0800
hai this is chow cheok again. got another problem here.
this is what i have so far
f=open('you','w')
html=urllib.urlopen("http://www.guardian.co.uk/Distribution/Artifact_Trail_Block/0,5184,179821-0-,00.html").read()
f.write(html)
but when i read it i don't get the file from the website. all i get is
rubbish. why is that. even when i try to write a line ex:"i am a boy'
i get rubbish too. the only thing i can write to the file is '12345abcd' and
other strings similar to it. how do i write the information i got from the
website into the file. it can print out fine when i type
print html.
but it won't enter my file.
any help is appreciated. thank you
ps. thanks for all the advise you all have given in the past. it has been
very helpful.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.