[Tutor] Adding Text to the Beginning of a File
Alan Colburn
aicolburn at hotmail.com
Fri Nov 5 21:30:15 CET 2004
Hi all --
Can anyone offer me a suggestion for how to add text
to the beginning of a file? I know that file.seek(0)
takes me to the beginning of the file, but
file.write() ultimately still adds new strings to the
end of the file. (The file is opened in a+ mode...)
As always, thanks ahead of time for your help.
--Al C (aicolburn at yahoo.com)
_________________________________________________________________
Get ready for school! Find articles, homework help and more in the Back to
School Guide! http://special.msn.com/network/04backtoschool.armx
More information about the Tutor
mailing list