"Marc Tompkins" <marc.tompk...@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/

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to