Erik Max Francis wrote: > Salvatore wrote: > > >>How can I create file-like objects ? >>I want to work in memory only. > > > You want the StringIO module. > Thanks Max, I wanted to redirect sys.stdout to StringIO object but il doesn't seem to work