Newbie: easy filecopy?
Holger Jannsen
holger at phoenix-edv.netzservice.de
Tue Jun 15 10:02:48 EDT 1999
Another ascpect to my question of yesterday:
The problem with
f=open(aFile)
x=f.read()
f.close
f.open(toFile)
f.write(x)
f.close
is, that some special ASCII-codes are not copied as usual
under Windows-systems, so e.g. CarriageReturn (tested with normal
Asccii-text).
Hints?
Ciao,
Holger
Holger Jannsen schrieb:
>
> Sorry,
> it's me again.;-)
>
> I couldn't believe it. I think there must be an easy copy-function
> in python (I only want to copy files under ext2- or FAT-FileSystems).
> Call me "4 blind mice"-Joey, but I couldn't find it.
> For sure, I could write a thing like open-read-write-close, but I
> think, someone else has done already, hasn't he?
>
> Thanx again for patience with me...[snuff]
>
> Ciao,
> Holger
More information about the Python-list
mailing list