The suggestion to use StringIO to make a string have the same
interface
as a file works perfect in my situation. Here is now the working
result
(just in case it is useful to anyone) part of this is still a definite
hack and suggestions for improvement are certainly appreciated.
Want:
have an easi
On Thu, 24 Jan 2008 18:57:58 -0800, Bart Kastermans wrote:
> I have written a little program that takes as input a text file,
...
> Expected since homeworkhtml is in fact not a file. Is there a way to
> convert this list to a file object without first writing it to disc and
> then opening the re
On Jan 24, 8:57 pm, Bart Kastermans <[EMAIL PROTECTED]> wrote:
> I have written a little program that takes as input a text file,
> converts
> it to a list with appropriate html coding (making it into a nice
> table).
> Finally I want to upload this list as a textfile using ftp.
>
> If homeworkhtm
I have written a little program that takes as input a text file,
converts
it to a list with appropriate html coding (making it into a nice
table).
Finally I want to upload this list as a textfile using ftp.
If homeworkhtml contains the list of lines;
e.g. homeworkhtml = ["", "", "", "test", "" ...