[Tutor] Copy file function works, but not with adding the date copied
Alan Gauld
alan.gauld at btinternet.com
Sat Feb 14 01:46:57 CET 2009
"Marc Tompkins" <marc.tompkins at gmail.com> wrote
> Here's a quick-and-dirty way to do what (I think) you want to do:
>
> Skip the first curly brace ("{") - find the next one. Just before
> it,
> insert a space + the datestamp text. That's it.
If the OP is just working through my tutor I doubt if he will
be able to do much of that yet. Especially since the
"handling text" topic is the one *after* handling files! :-)
BTW Thanks for the reminder about RTF format, you are
right it is not strictly a binary file it is formatted text. The
end result is the same in that the OP needs to use a
plain unformatted text file rather than trying to write to RTF.
Also The RTF module I mentioned is here:
http://www.nava.de/2005/04/06/pyrtf/
HTH,
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list